com.caucho.config.scope
Class SingletonScope

java.lang.Object
  extended by com.caucho.config.scope.AbstractScopeContext
      extended by com.caucho.config.scope.SingletonScope
All Implemented Interfaces:
Context

@Module
public class SingletonScope
extends AbstractScopeContext

The application scope value


Field Summary
 
Fields inherited from class com.caucho.config.scope.AbstractScopeContext
L
 
Constructor Summary
SingletonScope()
          Returns the current application scope
 
Method Summary
<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.
 
Methods inherited from class com.caucho.config.scope.AbstractScopeContext
closeContext, get, get
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingletonScope

public SingletonScope()
Returns the current application scope

Method Detail

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)