@ThreadSafe public class GlobalScope extends AbstractMapBasedScope implements IGlobalScope
IGlobalScope interface.m_aRWLockm_aAttrs| Constructor and Description |
|---|
GlobalScope(String sScopeID) |
| Modifier and Type | Method and Description |
|---|---|
protected IApplicationScope |
createApplicationScope(String sApplicationID)
This method creates a new application scope.
|
protected void |
destroyOwnedScopes()
Override this method to destroy all scopes owned by this scope.
|
boolean |
equals(Object o) |
ICommonsMap<String,IApplicationScope> |
getAllApplicationScopes() |
IApplicationScope |
getApplicationScope(String sApplicationID,
boolean bCreateIfNotExisting)
Get or create an application scope with the given ID.
|
int |
getApplicationScopeCount() |
int |
hashCode() |
void |
initScope()
Init the scope.
|
protected void |
postDestroy()
Override this method to perform further actions AFTER the scope was
destroyed.
|
protected void |
preDestroy()
Override this method to perform further actions BEFORE the scope is
destroyed.
|
String |
toString() |
destroyScope, getAllScopeRenewalAwareAttributes, getID, isDestroyed, isInDestruction, isInPreDestruction, isValid, runAtomic, runAtomicgetCloneclear, onBeforeRemoveAllAttributes, onBeforeRemoveAttribute, onBeforeSetAttributeValue, removeAttribute, setAttribute, setAttributes, setAttributescontainsAttribute, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeCount, getAttributeObject, getIterator, isEmptyclone, finalize, getClass, notify, notifyAll, wait, wait, waitdestroyScope, getAllScopeRenewalAwareAttributes, getID, isDestroyed, isInDestruction, isValid, runAtomic, runAtomicgetAndSetAttributeFlag, setAttribute, setAttribute, setAttribute, setAttributeremoveAttribute, setAttribute, setAttributes, setAttributescontainsAttribute, getAllAttributeNames, getAllAttributes, getAllAttributeValues, getAttributeAsBigDecimal, getAttributeAsBigDecimal, getAttributeAsBigInteger, getAttributeAsBigInteger, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDouble, getAttributeAsDouble, getAttributeAsInt, getAttributeAsInt, getAttributeAsLong, getAttributeAsLong, getAttributeAsString, getAttributeAsString, getAttributeCount, getAttributeObject, getCastedAttribute, getCastedAttribute, getIterator, getTypedAttribute, getTypedAttribute, isEmpty, isNotEmptycleargetComparatorIDpublic void initScope()
IScopeprotected void destroyOwnedScopes()
AbstractMapBasedScopedestroyOwnedScopes in class AbstractMapBasedScopeprotected void preDestroy()
AbstractMapBasedScopepreDestroy in class AbstractMapBasedScopeprotected void postDestroy()
AbstractMapBasedScopepostDestroy in class AbstractMapBasedScope@Nonnull @OverrideOnDemand protected IApplicationScope createApplicationScope(@Nonnull @Nonempty String sApplicationID)
sApplicationID - The application ID to usenull.@Nullable public IApplicationScope getApplicationScope(@Nonnull @Nonempty String sApplicationID, boolean bCreateIfNotExisting)
IGlobalScopegetApplicationScope in interface IGlobalScopesApplicationID - The ID of the application scope to create. May neither be
null nor empty.bCreateIfNotExisting - if true the scope is created on first demand if it is
not yet existing.null if bCreateIfNotExisting is false and
the scope is not present@Nonnull @ReturnsMutableCopy public ICommonsMap<String,IApplicationScope> getAllApplicationScopes()
getAllApplicationScopes in interface IGlobalScopenull map with all available application scopes.
The key is the application ID and the value is the scope.@Nonnegative public int getApplicationScopeCount()
getApplicationScopeCount in interface IGlobalScopepublic boolean equals(Object o)
equals in class AbstractMapBasedScopepublic int hashCode()
hashCode in class AbstractMapBasedScopepublic String toString()
toString in class AbstractMapBasedScopeCopyright © 2014–2016 Philip Helger. All rights reserved.