Main Page | Packages | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

org.openmobileis.common.context.SessionContextManager Class Reference

List of all members.

Detailed Description

Definition at line 37 of file SessionContextManager.java.

Public Member Functions

 SessionContextManager ()
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  ) 
 

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.

Definition at line 85 of file SessionContextManager.java.

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

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

return the session context with the specified id.

return null if not found

Definition at line 67 of file SessionContextManager.java.

References 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.

Definition at line 120 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.

Definition at line 150 of file SessionContextManager.java.


The documentation for this class was generated from the following file:
Generated on Wed Dec 14 21:05:37 2005 for OpenMobileIS by  doxygen 1.4.4