Inheritance diagram for org.openmobileis.common.context.SessionContextService:
Definition at line 32 of file SessionContextService.java.
Public Member Functions | |
SessionContext | getSessionContext (String id) |
return the session context with the specified id. | |
SessionContext | getSessionContext () |
return the session context associéted with the currentThread. | |
SessionContext | createSessionContext (String id) |
create a new session context with the specified Id. | |
void | joinSessionContext (String id) |
Join the current thread to the SessionContext with the specified id. | |
void | leaveSessionContext () |
After a thread has use a session context. |
SessionContext org.openmobileis.common.context.SessionContextService.getSessionContext | ( | String | id | ) |
return the session context with the specified id.
return null if not found
Implemented in org.openmobileis.common.context.SessionContextManager.
SessionContext org.openmobileis.common.context.SessionContextService.getSessionContext | ( | ) |
return the session context associéted with the currentThread.
Null if not session is associated with the current thread. The method joinSessionContext must have been call before.
Implemented in org.openmobileis.common.context.SessionContextManager.
void org.openmobileis.common.context.SessionContextService.joinSessionContext | ( | String | id | ) |
Join the current thread to the SessionContext with the specified id.
If no SessionContext has the id create it. A thread can only join one SessionContext.
Implemented in org.openmobileis.common.context.SessionContextManager.
void org.openmobileis.common.context.SessionContextService.leaveSessionContext | ( | ) |
After a thread has use a session context.
Before ending it must leave the session context.
Implemented in org.openmobileis.common.context.SessionContextManager.