org.exolab.core.foundation
Interface SessionManagerIfc

All Known Implementing Classes:
PMDSessionManager

public interface SessionManagerIfc

This interface is responsible for managing all aspects of a sessions lifecycle from creation, administering and destruction. A session is single-threaded entity and hence one session per thread.

Version:
$Revision: 1.2 $ $Date: 2000/03/09 23:52:43 $
Author:
Jim Alateras

Method Summary
 void destroySession()
          Destroy the session associated with thew current thread.
 SessionIfc getSession()
          Return the session associated with the current thread.
 

Method Detail

getSession

SessionIfc getSession()
                      throws FailedToCreateSessionException
Return the session associated with the current thread. If one does not exist then create one. If it cannot create a session then throw FailedToCreatedSessionException exception. If one already exists then simply return a reference to it.

Returns:
SessionIfc
Throws:
FailedToCreateSessionException

destroySession

void destroySession()
                    throws FailedToDestroySessionException
Destroy the session associated with thew current thread. If one does not exist then do nothing. If it cannot destroy the session then throw FailedToDestroySessionException exception.

Throws:
FailedToDestroySessionException


Copyright © 1999-2012 The Exolab Group. All Rights Reserved.