|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Manages the Sessions within an Application.
Implementations of this interface should be threadsafe.
| Method Summary | |
void |
addSessionListener(SessionListener listener)
Registers an observer that is notified when sessions are created and disposed. |
Session |
createSession()
Creates and initializes a session object. |
void |
disposeSession(SessionId sessionId)
Disposes a session. |
void |
removeSessionListener(SessionListener listener)
Unregisters an observer. |
| Method Detail |
public Session createSession()
public void disposeSession(SessionId sessionId)
throws DisposeException
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.
sessionId - the id of the session to be disposed
DisposeException - if there is an error while disposing the session
java.lang.IllegalArgumentException - if the session id is unknownpublic void addSessionListener(SessionListener listener)
listener - the listener to be addedpublic void removeSessionListener(SessionListener listener)
listener - the listener to be removed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||