@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(Contextual<T> comp,
T value) |
protected <T> T |
create(Contextual<T> bean,
CreationalContext<T> 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, get
public boolean isActive()
isActive
in interface Context
isActive
in class AbstractScopeContext
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
getScope
in interface Context
getScope
in class AbstractScopeContext
protected ContextContainer getContextContainer()
getContextContainer
in class AbstractScopeContext
protected ContextContainer createContextContainer()
createContextContainer
in class AbstractScopeContext
protected <T> T create(Contextual<T> bean, CreationalContext<T> env)
create
in class AbstractScopeContext
public <T> void addDestructor(Contextual<T> comp, T value)