Package org.zkoss.zk.ui.impl
Class GlobalDesktopCacheProvider
java.lang.Object
org.zkoss.zk.ui.impl.GlobalDesktopCacheProvider
- All Implemented Interfaces:
Serializable,DesktopCacheProvider
public class GlobalDesktopCacheProvider
extends Object
implements DesktopCacheProvider, Serializable
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.
- 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
-
GlobalDesktopCacheProvider
public GlobalDesktopCacheProvider()
-
-
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
-