|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.zkoss.zk.ui.impl.GlobalDesktopCacheProvider
public class GlobalDesktopCacheProvider
A implementation of DesktopCacheProvider
that stores all
desktops from the same Web application into one desktop cache.
In other words, it ignores the session, and it depends only on
WebApp
.
SessionDesktopCacheProvider
,
Serialized FormConstructor Summary | |
---|---|
GlobalDesktopCacheProvider()
|
Method Summary | |
---|---|
DesktopCache |
getDesktopCache(Session sess)
Returns a desktop cache of the specified session. |
void |
sessionDestroyed(Session sess)
Called when a session is destroyed. |
void |
sessionDidActivate(Session sess)
Invokes getDesktopCache(org.zkoss.zk.ui.Session) 's DesktopCache.sessionDidActivate(org.zkoss.zk.ui.Session) . |
void |
sessionWillPassivate(Session sess)
Invokes getDesktopCache(org.zkoss.zk.ui.Session) 's DesktopCache.sessionWillPassivate(org.zkoss.zk.ui.Session) . |
void |
start(WebApp wapp)
Starts the provider. |
void |
stop(WebApp wapp)
Stops the provider. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GlobalDesktopCacheProvider()
Method Detail |
---|
public DesktopCache getDesktopCache(Session sess)
DesktopCacheProvider
The implementation might ignore session and use a global cache instead. Moreover, it might implement a cache supporting clustering.
getDesktopCache
in interface DesktopCacheProvider
public void sessionDestroyed(Session sess)
DesktopCacheProvider
Application shall never access this method.
sessionDestroyed
in interface DesktopCacheProvider
public void sessionWillPassivate(Session sess)
getDesktopCache(org.zkoss.zk.ui.Session)
's DesktopCache.sessionWillPassivate(org.zkoss.zk.ui.Session)
.
sessionWillPassivate
in interface DesktopCacheProvider
public void sessionDidActivate(Session sess)
getDesktopCache(org.zkoss.zk.ui.Session)
's DesktopCache.sessionDidActivate(org.zkoss.zk.ui.Session)
.
sessionDidActivate
in interface DesktopCacheProvider
public void start(WebApp wapp)
DesktopCacheProvider
start
in interface DesktopCacheProvider
public void stop(WebApp wapp)
DesktopCacheProvider
stop
in interface DesktopCacheProvider
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |