com.caucho.config.scope
Class ContextContainer

java.lang.Object
  extended by com.caucho.config.scope.ContextContainer
All Implemented Interfaces:
ScopeRemoveListener, java.io.Serializable
Direct Known Subclasses:
SessionContextContainer, XAContextContainer

@Module
public class ContextContainer
extends java.lang.Object
implements java.io.Serializable, ScopeRemoveListener

Serializable container for a bean scope.

See Also:
Serialized Form

Constructor Summary
ContextContainer()
           
 
Method Summary
 void close()
           
<T> T
get(Contextual<T> bean)
           
 java.lang.Object get(java.lang.Object id)
           
<T> void
put(Contextual<T> bean, java.lang.Object id, T value, CreationalContext<T> env)
           
 void removeEvent(java.lang.Object scope, java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContextContainer

public ContextContainer()
Method Detail

get

public java.lang.Object get(java.lang.Object id)

get

public <T> T get(Contextual<T> bean)

put

public <T> void put(Contextual<T> bean,
                    java.lang.Object id,
                    T value,
                    CreationalContext<T> env)

removeEvent

public void removeEvent(java.lang.Object scope,
                        java.lang.String name)
Specified by:
removeEvent in interface ScopeRemoveListener

close

public void close()