Package org.jboss.weld.contexts
Class AbstractUnboundContext
- java.lang.Object
-
- org.jboss.weld.contexts.AbstractContext
-
- org.jboss.weld.contexts.AbstractManagedContext
-
- org.jboss.weld.contexts.AbstractUnboundContext
-
- All Implemented Interfaces:
AlterableContext,Context,ManagedContext,WeldAlterableContext
- Direct Known Subclasses:
RequestContextImpl,ThreadContext
public abstract class AbstractUnboundContext extends AbstractManagedContext
Base class for contexts using a thread local to store a bound bean context- Author:
- Pete Muir
-
-
Constructor Summary
Constructors Constructor Description AbstractUnboundContext(String contextId, boolean multithreaded)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcleanup()protected voiddestroy()Destroys the contextprotected BeanStoregetBeanStore()Gets the bean storeprotected voidsetBeanStore(BeanStore beanStore)Sets the bean store-
Methods inherited from class org.jboss.weld.contexts.AbstractManagedContext
activate, deactivate, invalidate, isActive, isValid, removeState, setActive
-
Methods inherited from class org.jboss.weld.contexts.AbstractContext
checkContextInitialized, destroy, get, get, getContextual, getId, getServiceRegistry, isMultithreaded
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.enterprise.context.spi.AlterableContext
destroy
-
Methods inherited from interface org.jboss.weld.context.WeldAlterableContext
clearAndSet, getAllContextualInstances
-
-
-
-
Constructor Detail
-
AbstractUnboundContext
public AbstractUnboundContext(String contextId, boolean multithreaded)
-
-
Method Detail
-
getBeanStore
protected BeanStore getBeanStore()
Gets the bean store- Specified by:
getBeanStorein classAbstractContext- Returns:
- The bean store
-
setBeanStore
protected void setBeanStore(BeanStore beanStore)
Sets the bean store- Parameters:
beanStore- The bean store
-
destroy
protected void destroy()
Description copied from class:AbstractContextDestroys the context- Overrides:
destroyin classAbstractContext
-
cleanup
public void cleanup()
- Overrides:
cleanupin classAbstractContext
-
-