com.caucho.config.scope
Class SingletonScope
java.lang.Object
com.caucho.config.scope.AbstractScopeContext
com.caucho.config.scope.SingletonScope
- All Implemented Interfaces:
- Context
@Module
public class SingletonScope
- extends AbstractScopeContext
The application scope value
Constructor Summary |
SingletonScope()
Returns the current application scope |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingletonScope
public SingletonScope()
- Returns the current application scope
isActive
public boolean isActive()
- Returns true if the scope is currently active.
- Specified by:
isActive
in interface Context
- Specified by:
isActive
in class AbstractScopeContext
getScope
public java.lang.Class<? extends java.lang.annotation.Annotation> getScope()
- Returns the scope annotation type.
- Specified by:
getScope
in interface Context
- Specified by:
getScope
in class AbstractScopeContext
getContextContainer
protected ContextContainer getContextContainer()
- Specified by:
getContextContainer
in class AbstractScopeContext
createContextContainer
protected ContextContainer createContextContainer()
- Specified by:
createContextContainer
in class AbstractScopeContext
create
protected <T> T create(Contextual<T> bean,
CreationalContext<T> env)
- Overrides:
create
in class AbstractScopeContext
addDestructor
public <T> void addDestructor(Contextual<T> comp,
T value)