@Module public class SingletonScope extends AbstractScopeContext
L| Constructor and Description |
|---|
SingletonScope()
Returns the current application scope
|
| Modifier and Type | Method and Description |
|---|---|
<T> void |
addDestructor(<any> comp,
T value) |
protected <T> T |
create(<any> bean,
<any> env) |
protected ContextContainer |
createContextContainer() |
protected ContextContainer |
getContextContainer() |
java.lang.Class<? extends java.lang.annotation.Annotation> |
getScope()
Returns the scope annotation type.
|
boolean |
isActive()
Returns true if the scope is currently active.
|
closeContext, get, getpublic boolean isActive()
isActive in class AbstractScopeContextpublic java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
getScope in class AbstractScopeContextprotected ContextContainer getContextContainer()
getContextContainer in class AbstractScopeContextprotected ContextContainer createContextContainer()
createContextContainer in class AbstractScopeContextprotected <T> T create(<any> bean,
<any> env)
create in class AbstractScopeContextpublic <T> void addDestructor(<any> comp,
T value)