|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.beans.beancontext.BeanContextChildSupport java.beans.beancontext.BeanContextSupport java.beans.beancontext.BeanContextServicesSupport net.sf.sail.core.beans.SessionContext
public class SessionContext
Provides services to beans within the pod. Allows beans and pods to listen for session events. a life cycle manager for sail. The parent bean for all javabeans.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.beans.beancontext.BeanContextServicesSupport |
---|
java.beans.beancontext.BeanContextServicesSupport.BCSSChild, java.beans.beancontext.BeanContextServicesSupport.BCSSProxyServiceProvider, java.beans.beancontext.BeanContextServicesSupport.BCSSServiceProvider |
Nested classes/interfaces inherited from class java.beans.beancontext.BeanContextSupport |
---|
java.beans.beancontext.BeanContextSupport.BCSChild, java.beans.beancontext.BeanContextSupport.BCSIterator |
Field Summary | |
---|---|
static boolean |
exitOnClose
|
protected java.util.Date |
startTime
|
protected java.util.Date |
stopTime
|
Fields inherited from class java.beans.beancontext.BeanContextServicesSupport |
---|
bcsListeners, proxy, serializable, services |
Fields inherited from class java.beans.beancontext.BeanContextSupport |
---|
bcmListeners, children, designTime, locale, okToUseGui |
Fields inherited from class java.beans.beancontext.BeanContextChildSupport |
---|
beanContext, beanContextChildPeer, pcSupport, rejectedSetBCOnce, vcSupport |
Fields inherited from interface java.beans.beancontext.BeanContext |
---|
globalHierarchyLock |
Fields inherited from interface java.beans.DesignMode |
---|
PROPERTYNAME |
Constructor Summary | |
---|---|
SessionContext()
|
Method Summary | |
---|---|
void |
addSessionEventListener(SessionEventListener sel)
|
void |
addUser(User user)
|
protected void |
dumpPersistance()
|
protected void |
fireSessionEvent(SessionEvent se)
|
Offering |
getOffering()
|
long |
getOffsetMilliseconds()
|
SessionDataService |
getSessionDataService()
|
SessionUuid |
getSessionId()
|
SessionService |
getSessionService()
Again this is a something that seems hacky. |
java.util.Date |
getStartTime()
|
java.util.Date |
getStopTime()
|
long |
getTimeDifference()
|
void |
initiate()
|
void |
initStartTime()
|
void |
setOffering(Offering offering)
|
void |
setProperty(java.lang.String key,
java.lang.String value)
This is a hack until all this service mess is cleaned up |
void |
setSessionDataService(SessionDataService sessionDataService)
|
void |
setSessionId(SessionUuid sessionId)
|
void |
start()
|
java.lang.String |
toString()
|
void |
tryToTerminate()
|
Methods inherited from class java.beans.beancontext.BeanContextServicesSupport |
---|
addBeanContextServicesListener, addService, addService, bcsPreDeserializationHook, bcsPreSerializationHook, childJustRemovedHook, createBCSChild, createBCSSServiceProvider, fireServiceAdded, fireServiceAdded, fireServiceRevoked, fireServiceRevoked, getBeanContextServicesPeer, getChildBeanContextServicesListener, getCurrentServiceClasses, getCurrentServiceSelectors, getService, hasService, initialize, initializeBeanContextResources, releaseBeanContextResources, releaseService, removeBeanContextServicesListener, revokeService, serviceAvailable, serviceRevoked |
Methods inherited from class java.beans.beancontext.BeanContextSupport |
---|
add, addAll, addBeanContextMembershipListener, avoidingGui, bcsChildren, childDeserializedHook, childJustAddedHook, classEquals, clear, contains, containsAll, containsKey, copyChildren, deserialize, dontUseGui, fireChildrenAdded, fireChildrenRemoved, getBeanContextPeer, getChildBeanContextChild, getChildBeanContextMembershipListener, getChildPropertyChangeListener, getChildSerializable, getChildVetoableChangeListener, getChildVisibility, getLocale, getResource, getResourceAsStream, instantiateChild, isDesignTime, isEmpty, isSerializing, iterator, needsGui, okToUseGui, propertyChange, readChildren, remove, remove, removeAll, removeBeanContextMembershipListener, retainAll, serialize, setDesignTime, setLocale, size, toArray, toArray, validatePendingAdd, validatePendingRemove, vetoableChange, writeChildren |
Methods inherited from class java.beans.beancontext.BeanContextChildSupport |
---|
addPropertyChangeListener, addVetoableChangeListener, firePropertyChange, fireVetoableChange, getBeanContext, getBeanContextChildPeer, isDelegated, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext, validatePendingSetBeanContext |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.beans.beancontext.BeanContext |
---|
addBeanContextMembershipListener, getResource, getResourceAsStream, instantiateChild, removeBeanContextMembershipListener |
Methods inherited from interface java.beans.beancontext.BeanContextChild |
---|
addPropertyChangeListener, addVetoableChangeListener, getBeanContext, removePropertyChangeListener, removeVetoableChangeListener, setBeanContext |
Methods inherited from interface java.util.Collection |
---|
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray |
Methods inherited from interface java.beans.DesignMode |
---|
isDesignTime, setDesignTime |
Methods inherited from interface java.beans.Visibility |
---|
avoidingGui, dontUseGui, needsGui, okToUseGui |
Field Detail |
---|
protected java.util.Date startTime
protected java.util.Date stopTime
public static boolean exitOnClose
Constructor Detail |
---|
public SessionContext()
Method Detail |
---|
public Offering getOffering()
public void setOffering(Offering offering)
public void addSessionEventListener(SessionEventListener sel)
protected void fireSessionEvent(SessionEvent se)
public void addUser(User user)
public void initiate()
public void start()
public void tryToTerminate()
public java.util.Date getStartTime()
public void initStartTime()
public long getTimeDifference()
public java.util.Date getStopTime()
public SessionUuid getSessionId()
public void setSessionId(SessionUuid sessionId)
public SessionDataService getSessionDataService()
public void setSessionDataService(SessionDataService sessionDataService)
public void setProperty(java.lang.String key, java.lang.String value)
key
- value
- public SessionService getSessionService()
public long getOffsetMilliseconds()
protected void dumpPersistance()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |