Package com.helger.scope
Class SessionScope
- java.lang.Object
-
- com.helger.scope.AbstractScope
-
- com.helger.scope.SessionScope
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,IScope,ISessionScope
@ThreadSafe public class SessionScope extends AbstractScope implements ISessionScope
Default implementation of theISessionScopeinterface- Author:
- Philip Helger
-
-
Field Summary
-
Fields inherited from class com.helger.scope.AbstractScope
m_aRWLock
-
-
Constructor Summary
Constructors Constructor Description SessionScope(String sScopeID)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidinitScope()Init the scope.protected voidpostDestroy()Override this method to perform further actions AFTER the scope was destroyed.protected voidpreDestroy()Override this method to perform further actions BEFORE the scope is destroyed.com.helger.commons.state.EContinueselfDestruct()A special internal method that destroys the session.-
Methods inherited from class com.helger.scope.AbstractScope
attrs, destroyScope, equals, getID, hashCode, isDestroyed, isInDestruction, isInPreDestruction, isValid, runAtomic, runAtomic, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.scope.IScope
attrs, destroyScope, getAllScopeRenewalAwareAttributes, getID, isDestroyed, isInDestruction, isValid, runAtomic, runAtomic
-
-
-
-
Method Detail
-
initScope
public void initScope()
Description copied from interface:IScopeInit the scope. In contrast to the constructor of a scope, this happens after the scope has been registered in the scope manager.
-
preDestroy
protected void preDestroy()
Description copied from class:AbstractScopeOverride this method to perform further actions BEFORE the scope is destroyed. The state is "in pre destruction".- Overrides:
preDestroyin classAbstractScope
-
postDestroy
protected void postDestroy()
Description copied from class:AbstractScopeOverride this method to perform further actions AFTER the scope was destroyed. The state is "destroyed".- Overrides:
postDestroyin classAbstractScope
-
selfDestruct
@Nonnull public com.helger.commons.state.EContinue selfDestruct()
Description copied from interface:ISessionScopeA special internal method that destroys the session. This is especially relevant for session web scope, because it is all done via the invalidation of the underlying HTTP session.- Specified by:
selfDestructin interfaceISessionScope- Returns:
EContinue.BREAKto indicate that the regular destruction should not be performed!
-
-