Package org.zkoss.zk.ui.sys
Interface DesktopCacheProvider
- All Known Implementing Classes:
GlobalDesktopCacheProvider,SessionDesktopCacheProvider
public interface DesktopCacheProvider
Used to retrieve a desktop cache (
DesktopCache).- Author:
- tomyeh
-
Method Summary
Modifier and TypeMethodDescriptiongetDesktopCache(Session session) Returns a desktop cache of the specified session.voidsessionDestroyed(Session session) Called when a session is destroyed.voidsessionDidActivate(Session sess) Notification that the session has just been activated (a.k.a., deserialized).voidsessionWillPassivate(Session sess) Notification that the session is about to be passivated (a.k.a., serialized).voidStarts the provider.voidStops the provider.
-
Method Details
-
getDesktopCache
Returns 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.
-
sessionDestroyed
Called 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.
-
sessionWillPassivate
Notification that the session is about to be passivated (a.k.a., serialized).It is called when
WebAppCtrl.sessionWillPassivate(org.zkoss.zk.ui.Session)is called. -
sessionDidActivate
Notification that the session has just been activated (a.k.a., deserialized).It is called when
WebAppCtrl.sessionDidActivate(org.zkoss.zk.ui.Session)is called. -
start
Starts the provider. -
stop
Stops the provider.
-