Package org.jboss.weld.context
Class AbstractBoundContext<S>
- java.lang.Object
-
- org.jboss.weld.context.AbstractContext
-
- org.jboss.weld.context.AbstractManagedContext
-
- org.jboss.weld.context.AbstractBoundContext<S>
-
- All Implemented Interfaces:
javax.enterprise.context.spi.AlterableContext,javax.enterprise.context.spi.Context,org.jboss.weld.context.BoundContext<S>,org.jboss.weld.context.ManagedContext
- Direct Known Subclasses:
AbstractConversationContext,BoundRequestContextImpl,BoundSessionContextImpl,EjbRequestContextImpl,HttpRequestContextImpl,HttpSessionContextImpl,HttpSessionDestructionContext
public abstract class AbstractBoundContext<S> extends AbstractManagedContext implements org.jboss.weld.context.BoundContext<S>
Base class for contexts using a thread local to store a bound bean context- Author:
- Pete Muir
-
-
Constructor Summary
Constructors Constructor Description AbstractBoundContext(String contextId, boolean multithreaded)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactivate()voidcleanup()voiddeactivate()booleandissociate(S storage)protected BoundBeanStoregetBeanStore()Gets the bean storeprotected voidsetBeanStore(BoundBeanStore beanStore)Sets the bean store-
Methods inherited from class org.jboss.weld.context.AbstractManagedContext
invalidate, isActive, isValid, removeState, setActive
-
Methods inherited from class org.jboss.weld.context.AbstractContext
checkContextInitialized, destroy, destroy, get, get, getContextual, getId, getServiceRegistry
-
-
-
-
Constructor Detail
-
AbstractBoundContext
public AbstractBoundContext(String contextId, boolean multithreaded)
-
-
Method Detail
-
getBeanStore
protected BoundBeanStore getBeanStore()
Gets the bean store- Specified by:
getBeanStorein classAbstractContext- Returns:
- The bean store
-
setBeanStore
protected void setBeanStore(BoundBeanStore beanStore)
Sets the bean store- Parameters:
beanStore- The bean store
-
cleanup
public void cleanup()
- Overrides:
cleanupin classAbstractContext
-
activate
public void activate()
- Specified by:
activatein interfaceorg.jboss.weld.context.ManagedContext- Overrides:
activatein classAbstractManagedContext
-
deactivate
public void deactivate()
- Specified by:
deactivatein interfaceorg.jboss.weld.context.ManagedContext- Overrides:
deactivatein classAbstractManagedContext
-
-