|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Represents a session.
Implementations of this interface should be threadsafe.
| Method Summary | |
void |
dispose()
Disposes the session including all dialogs and frees all allocated resources. |
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. |
| Method Detail |
public SessionId getSessionId()
SessionManager
public boolean hasService(java.lang.Class service)
service - the class of the service interface that is searched for
java.lang.IllegalArgumentException - if the
service class is not an interface that extends Service.public Service getService(java.lang.Class service)
service - the class of the service interface that is requested
java.lang.IllegalArgumentException - iif the
service class is not an interface that extends Service, or if
the service is not available at the session
public void dispose()
throws DisposeException
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 DisposableDisposeException - if there was one or more errors while
disposing the session.Disposable.dispose()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||