org.openmobileis.common.context.SessionContextManager Class Reference

Inheritance diagram for org.openmobileis.common.context.SessionContextManager:

org.openmobileis.common.context.SessionContextService List of all members.

Detailed Description

Definition at line 37 of file SessionContextManager.java.

Public Member Functions

 SessionContextManager (boolean init)
synchronized SessionContext getSessionContext (String id)
 return the session context with the specified id.
synchronized SessionContext getSessionContext ()
 return the session context associéted with the currentThread.
synchronized SessionContext createSessionContext (String id)
 create a new session context with the specified Id.
synchronized void joinSessionContext (String id)
 Join the current thread to the SessionContext with the specified id.
synchronized void invalidateSession (String id)
synchronized void leaveSessionContext ()
 After a thread has use a session context.

Static Public Member Functions

static final void registerManager (SessionContextManager newManager)
static final SessionContextManager getManager ()

Protected Member Functions

SessionContext realCreateSessionContext (String id)

Static Package Functions

static synchronized long getNewID ()


Member Function Documentation

synchronized SessionContext org.openmobileis.common.context.SessionContextManager.getSessionContext ( String  id  ) 

return the session context with the specified id.

return null if not found

Implements org.openmobileis.common.context.SessionContextService.

Definition at line 74 of file SessionContextManager.java.

References org.openmobileis.common.context.SessionContext.SetIsNew().

synchronized SessionContext org.openmobileis.common.context.SessionContextManager.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.

Implements org.openmobileis.common.context.SessionContextService.

Definition at line 92 of file SessionContextManager.java.

References org.openmobileis.common.context.SessionContextManager.getNewID(), and org.openmobileis.common.context.SessionContext.SetIsNew().

synchronized void org.openmobileis.common.context.SessionContextManager.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.

Implements org.openmobileis.common.context.SessionContextService.

Definition at line 128 of file SessionContextManager.java.

References org.openmobileis.common.context.SessionContextManager.createSessionContext().

synchronized void org.openmobileis.common.context.SessionContextManager.leaveSessionContext (  ) 

After a thread has use a session context.

Before ending it must leave the session context.

Implements org.openmobileis.common.context.SessionContextService.

Definition at line 158 of file SessionContextManager.java.


The documentation for this class was generated from the following file:
Generated on Tue May 22 23:01:15 2007 for OpenMobileIS by  doxygen 1.5.1-p1