| Package | Description |
|---|---|
| com.helger.commons.scope | |
| com.helger.commons.scope.mgr | |
| com.helger.commons.scope.singleton | |
| com.helger.commons.scope.singletons |
| Modifier and Type | Interface and Description |
|---|---|
interface |
IApplicationScope
Interface for a single application scope object.
|
interface |
IGlobalScope
Interface for a single global scope object.
|
interface |
IRequestScope
Interface for a single request scope object.
|
interface |
ISessionApplicationScope
Interface for a single session application scope object.
|
interface |
ISessionScope
Interface for a single session scope object.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractMapBasedScope
Abstract scope implementation based on a Map containing the attribute values.
|
class |
ApplicationScope
Represents a single "application scope".
|
class |
GlobalScope
Base implementation of the
IGlobalScope interface. |
class |
RequestScope
Default implementation for non-web request scopes.
|
class |
SessionApplicationScope
Represents a single "session application scope".
|
class |
SessionScope
Default implementation of the
ISessionScope interface |
| Modifier and Type | Method and Description |
|---|---|
void |
IScopeDestructionAware.onBeforeScopeDestruction(IScope aScopeToBeDestroyed)
Called before the owning scope is destroyed.
|
void |
IScopeDestructionAware.onScopeDestruction(IScope aScopeInDestruction)
Called when the owning scope is destroyed.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
IScope.runAtomic(INonThrowingCallableWithParameter<T,IScope> aCallable)
Perform stuff as a single action.
|
<T> T |
AbstractMapBasedScope.runAtomic(INonThrowingCallableWithParameter<T,IScope> aCallable) |
void |
IScope.runAtomic(INonThrowingRunnableWithParameter<IScope> aRunnable)
Perform stuff as a single action.
|
void |
AbstractMapBasedScope.runAtomic(INonThrowingRunnableWithParameter<IScope> aRunnable) |
| Modifier and Type | Method and Description |
|---|---|
IScope |
EScope.getScope() |
IScope |
EScope.getScope(boolean bCreateIfNotExisting) |
static IScope |
EScope.getScope(EScope eScope,
boolean bCreateIfNotExisting)
Resolve the currently matching scope of the given
EScope value. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ScopeSessionManager.onDestroy(IScope aScopeInDestruction) |
| Modifier and Type | Method and Description |
|---|---|
static <T extends AbstractSingleton> |
AbstractSingleton.getAllSingletons(IScope aScope,
Class<T> aDesiredClass)
Get all singleton objects registered in the respective sub-class of this
class.
|
static <T extends AbstractSingleton> |
AbstractSingleton.getSingleton(IScope aScope,
Class<T> aClass)
Get the singleton object in the passed scope, using the passed class.
|
static <T extends AbstractSingleton> |
AbstractSingleton.getSingletonIfInstantiated(IScope aScope,
Class<T> aClass)
Get the singleton object if it is already instantiated inside a scope or
null if it is not instantiated. |
static boolean |
AbstractSingleton.isSingletonInstantiated(IScope aScope,
Class<? extends AbstractSingleton> aClass)
Check if a singleton is already instantiated inside a scope
|
protected void |
AbstractSingleton.onAfterInstantiation(IScope aScope)
Called after the singleton was instantiated.
|
protected void |
AbstractSingleton.onBeforeDestroy(IScope aScopeToBeDestroyed)
Called before this singleton is destroyed.
|
void |
AbstractSingleton.onBeforeScopeDestruction(IScope aScopeToBeDestroyed) |
protected void |
AbstractSingleton.onDestroy(IScope aScopeInDestruction)
Called when this singleton is destroyed.
|
void |
AbstractSingleton.onScopeDestruction(IScope aScopeInDestruction) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
ScopedFileMonitorManager.onDestroy(IScope aScopeInDestruction) |
Copyright © 2014–2016 Philip Helger. All rights reserved.