|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DesktopCache
The cache used to store desktops.
Method Summary | |
---|---|
void |
addDesktop(Desktop desktop)
Adds a desktop to this session. |
Desktop |
getDesktop(java.lang.String desktopId)
Returns the desktop for the specified desktop ID. |
Desktop |
getDesktopIfAny(java.lang.String desktopId)
Returns the desktop for the specified desktop ID, or null if not found. |
int |
getNextKey()
Returns the next available key which is unique in the whole cache. |
void |
removeDesktop(Desktop desktop)
Removes a desktop from this session. |
void |
sessionDidActivate(Session sess)
Notification that the session has just been activated (a.k.a., deserialized). |
void |
sessionWillPassivate(Session sess)
Notification that the session is about to be passivated (a.k.a., serialized). |
void |
stop()
Called when to stop and cleanup this cache. |
Method Detail |
---|
int getNextKey()
Desktop
uses this method to generate ID automatically.
Desktop getDesktop(java.lang.String desktopId)
ComponentNotFoundException
- is thrown if the desktop
is not foundDesktop getDesktopIfAny(java.lang.String desktopId)
void addDesktop(Desktop desktop)
Application shall never access this method.
void removeDesktop(Desktop desktop)
Application shall never access this method.
void sessionWillPassivate(Session sess)
void sessionDidActivate(Session sess)
void stop()
DesktopCacheProvider
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |