Package com.helger.scope
Class GlobalScope
- java.lang.Object
-
- com.helger.scope.AbstractScope
-
- com.helger.scope.GlobalScope
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,IGlobalScope,IScope
@ThreadSafe public class GlobalScope extends AbstractScope implements IGlobalScope
Base implementation of theIGlobalScopeinterface.
Note: for synchronization issues, this class stores the attributes in a separate map.- Author:
- Philip Helger
-
-
Field Summary
-
Fields inherited from class com.helger.scope.AbstractScope
m_aRWLock
-
-
Constructor Summary
Constructors Constructor Description GlobalScope(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.-
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
-
-