Package org.zkoss.zk.ui.sys

Examples of org.zkoss.zk.ui.sys.SessionCtrl


public class SessionDesktopCacheProvider implements DesktopCacheProvider {
  private WebApp _wapp;

  //-- DesktopCacheProvider --//
  public DesktopCache getDesktopCache(Session sess) {
    final SessionCtrl sessCtrl = (SessionCtrl)sess;
    DesktopCache dc = sessCtrl.getDesktopCache();
    if (dc == null) {
      synchronized (this) {
        dc = sessCtrl.getDesktopCache();
        if (dc == null) {
          dc = new SimpleDesktopCache(_wapp.getConfiguration());
          sessCtrl.setDesktopCache(dc);
        }
      }
    }
    return dc;
  }
View Full Code Here


      }
    }
    return dc;
  }
  public void sessionDestroyed(Session sess) {
    final SessionCtrl sessCtrl = (SessionCtrl)sess;
    final DesktopCache dc = sessCtrl.getDesktopCache();
    if (dc != null) {
      sessCtrl.setDesktopCache(null);
      dc.stop();
    }
  }
View Full Code Here

TOP

Related Classes of org.zkoss.zk.ui.sys.SessionCtrl

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.