net.sf.sail.core.service.impl
Class SessionManagerImpl

java.lang.Object
  extended by net.sf.sail.core.service.impl.SessionManagerImpl
All Implemented Interfaces:
Bundle, SessionManager

public class SessionManagerImpl
extends java.lang.Object
implements SessionManager, Bundle

Author:
scytacki AUDIT07-

Field Summary
protected  java.util.ArrayList<SessionLifecycleListener> lifecycleListeners
           
 
Constructor Summary
SessionManagerImpl()
           
 
Method Summary
 void addSessionLifecycleListener(SessionLifecycleListener listener)
           
 void initializeBundle(ServiceContext serviceContext)
          Initializes the services that this bundle provides
protected  void notifySessionContextCreated(SessionContext context)
           
protected  void notifySessionContextInitiated(SessionContext context)
           
protected  void notifySessionContextStarted(SessionContext context)
           
protected  void notifySessionStart()
          whos listening to start of the session
 void registerServices(ServiceContext serviceContext)
          Allows bundle to provide all the services that it has This method has to be called before initializeBundle
 void removeSessionLifecycleListener(SessionLifecycleListener listener)
           
 void start(ServiceContext serviceContext)
          The startup for the sail session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lifecycleListeners

protected java.util.ArrayList<SessionLifecycleListener> lifecycleListeners
Constructor Detail

SessionManagerImpl

public SessionManagerImpl()
Method Detail

notifySessionStart

protected void notifySessionStart()
whos listening to start of the session


notifySessionContextCreated

protected void notifySessionContextCreated(SessionContext context)

notifySessionContextInitiated

protected void notifySessionContextInitiated(SessionContext context)

notifySessionContextStarted

protected void notifySessionContextStarted(SessionContext context)

start

public void start(ServiceContext serviceContext)
The startup for the sail session. initization of sail session.

Specified by:
start in interface SessionManager
Parameters:
ServiceContext - serviceContext - the service context

registerServices

public void registerServices(ServiceContext serviceContext)
Description copied from interface: Bundle
Allows bundle to provide all the services that it has This method has to be called before initializeBundle

Specified by:
registerServices in interface Bundle
Parameters:
-
See Also:
net.sf.sail.core.bundle.Bundle#registerServices(java.beans.beancontext.BeanContextServices)

initializeBundle

public void initializeBundle(ServiceContext serviceContext)
Description copied from interface: Bundle
Initializes the services that this bundle provides

Specified by:
initializeBundle in interface Bundle

addSessionLifecycleListener

public void addSessionLifecycleListener(SessionLifecycleListener listener)
Specified by:
addSessionLifecycleListener in interface SessionManager

removeSessionLifecycleListener

public void removeSessionLifecycleListener(SessionLifecycleListener listener)
Specified by:
removeSessionLifecycleListener in interface SessionManager


Copyright © 2004-2008 TELS Center. All Rights Reserved.