Ejemplo n.º 1
0
 public static boolean hasInstance(String name, PageContext pc) {
   Resource res = _loadResource(pc.getConfig(), SCOPE_SESSION, name, pc.getCFID());
   Struct data = _loadData(pc, res, null);
   return data != null;
 }
Ejemplo n.º 2
0
  /**
   * load new instance of the class
   *
   * @param name
   * @param pc
   * @param checkExpires
   * @return
   */
  public static Session getInstance(String name, PageContext pc, Log log) {

    Resource res = _loadResource(pc.getConfig(), SCOPE_SESSION, name, pc.getCFID());
    Struct data = _loadData(pc, res, log);
    return new SessionFile(pc, res, data);
  }