|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.application.dialog.impl.DefaultSessionAdapter
| Constructor Summary | |
DefaultSessionAdapter(SessionId sessionId,
DialogInstanceId dialogInstanceId,
DialogServiceManager dialogServiceManager,
DisposeCallback disposeCallback)
Creates a new DefaultSessionAdapter. |
|
| Method Summary | |
void |
dispose()
Disposes the session including all dialogs and frees all allocated resources. |
protected ID |
getId()
|
Service |
getService(java.lang.Class service)
Returns the implementation of a desired service registered at the session. |
SessionId |
getSessionId()
Returns the id of this session within a session management managed by a SessionManager |
boolean |
hasService(java.lang.Class service)
Tests whether this session offers a service. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultSessionAdapter(SessionId sessionId,
DialogInstanceId dialogInstanceId,
DialogServiceManager dialogServiceManager,
DisposeCallback disposeCallback)
DefaultSessionAdapter.
dialogInstanceId - the dialog instance id for the sessiondialogServiceManager - to access servicesdisposeCallback - a DisposeCallback called when session is disposed| Method Detail |
public SessionId getSessionId()
SessionSessionManager
getSessionId in interface SessionSession.getSessionId()public boolean hasService(java.lang.Class service)
Session
hasService in interface Sessionservice - the class of the service interface that is searched for
public Service getService(java.lang.Class service)
Session
getService in interface Sessionservice - the class of the service interface that is requested
protected ID getId()
public void dispose()
throws DisposeException
Session
Important:
This method is called by the SessionManager and must never be called
directly. If you want to dispose the session,
then call SessionManager.disposeSession(SessionId).
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 SessionManager.disposeSession(SessionId).
dispose in interface SessionDisposeException - if there was one or more errors while
disposing the session.Session.dispose()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||