Beispiel #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;
 }
Beispiel #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);
  }