Package org.zkoss.zk.ui.impl
Class SessionDesktopCacheProvider
java.lang.Object
org.zkoss.zk.ui.impl.SessionDesktopCacheProvider
- All Implemented Interfaces:
DesktopCacheProvider
A implementation of
DesktopCacheProvider that stores all desktops
from the same session in one desktop cache.
Implementation Note: we don't store the desktop cache in the session's
attribute (rather, we use SessionCtrl.setDesktopCache(org.zkoss.zk.ui.sys.DesktopCache). Reason:
the desktop cache is serialized only if the session is serializable.
- Author:
- tomyeh
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetDesktopCache(Session sess) Returns a desktop cache of the specified session.voidsessionDestroyed(Session sess) Called when a session is destroyed.voidsessionDidActivate(Session sess) voidsessionWillPassivate(Session sess) voidStarts the provider.voidStops the provider.
-
Constructor Details
-
SessionDesktopCacheProvider
public SessionDesktopCacheProvider()
-
-
Method Details
-
getDesktopCache
Description copied from interface:DesktopCacheProviderReturns a desktop cache of the specified session.The implementation might ignore session and use a global cache instead. Moreover, it might implement a cache supporting clustering.
- Specified by:
getDesktopCachein interfaceDesktopCacheProvider
-
sessionDestroyed
Description copied from interface:DesktopCacheProviderCalled when a session is destroyed. If the provider is session-based, it has to remove relevant desktops. If not, it might ignore this method.Application shall never access this method.
- Specified by:
sessionDestroyedin interfaceDesktopCacheProvider
-
sessionWillPassivate
InvokesgetDesktopCache(org.zkoss.zk.ui.Session)'sDesktopCache.sessionWillPassivate(org.zkoss.zk.ui.Session).- Specified by:
sessionWillPassivatein interfaceDesktopCacheProvider
-
sessionDidActivate
InvokesgetDesktopCache(org.zkoss.zk.ui.Session)'sDesktopCache.sessionDidActivate(org.zkoss.zk.ui.Session).- Specified by:
sessionDidActivatein interfaceDesktopCacheProvider
-
start
Description copied from interface:DesktopCacheProviderStarts the provider.- Specified by:
startin interfaceDesktopCacheProvider
-
stop
Description copied from interface:DesktopCacheProviderStops the provider.- Specified by:
stopin interfaceDesktopCacheProvider
-