|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.application.AbstractSessionManager
com.sdm.quasar.client.core.application.DefaultSessionManager
The default implementation of a SessionManager for a swing client.
This implementation is designed to create only one session.
| Field Summary | |
protected static SessionId |
SESSION_ID
The session id used for the one existing session. |
| Fields inherited from class com.sdm.quasar.client.core.application.AbstractSessionManager |
listeners |
| Constructor Summary | |
DefaultSessionManager(Application application,
SessionCreator sessionCreator)
Constructor. |
|
| Method Summary | |
void |
collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
Builds the system information tree upon local information of the implementor. |
Session |
createSession()
If the session is already created, it is returned. |
void |
disposeSession(SessionId sessionId)
Disposes a session. |
boolean |
isStopApplicationAfterLastSession()
Returns true iff the application will be disposed after the last session has been disposed. |
void |
setStopApplicationAfterLastSession(boolean stopApplicationAfterLastSession)
Sets whether the application will be disposed after the last session has been disposed. |
| Methods inherited from class com.sdm.quasar.client.core.application.AbstractSessionManager |
addSessionListener, createSessionInstance, dispose, fireSessionCreated, fireSessionWillBeDisposed, getApplication, getRegisteredSession, getRegisteredSessionCount, hasRegisteredSession, registerSession, removeSessionListener, unregisterSession |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final SessionId SESSION_ID
| Constructor Detail |
public DefaultSessionManager(Application application,
SessionCreator sessionCreator)
AbstractSessionManager.AbstractSessionManager(Application,
SessionCreator)| Method Detail |
public Session createSession()
createSession in interface SessionManagercreateSession in class AbstractSessionManagerSessionManager.createSession(),
AbstractSessionManager
public void disposeSession(SessionId sessionId)
throws DisposeException
SessionManager
The implementation should call Session.dispose().
The call to this method is irrevokable. If you want to allow for user interaction or server calls before the session or its dialogs are disposed, you should do so before calling.
Note: The implementation must not return before the session is disposed. Any threads or asynchronous calls started must be completed before this method returns.
disposeSession in interface SessionManagerdisposeSession in class AbstractSessionManagerDisposeExceptionSessionManager.disposeSession(com.sdm.quasar.client.core.application.SessionId)public boolean isStopApplicationAfterLastSession()
public void setStopApplicationAfterLastSession(boolean stopApplicationAfterLastSession)
stopApplicationAfterLastSession - if true, the application will be disposed after the last session has been disposed.
public void collectSystemInfo(SystemInfoNode root,
SystemInfoOptions options)
SystemInfoProviderSystemInfoOptions).
The information can be appended to the tree by adding new child
SystemInformationNodes to the root node given using the
SystemInfoNode.createChild(String) method and by setting information
attributes the these nodes or the given root node.
collectSystemInfo in interface SystemInfoProviderroot - the SystemInfoNode to add information to (guaranteed to be not null)options - contains additional options, that might influence the amount of
information added to the tree (guaranteed to be not null)SystemInfoProvider.collectSystemInfo(com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode, com.sdm.quasar.client.core.common.sysinfo.SystemInfoOptions)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||