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:
jakarta.enterprise.context.spi.AlterableContext
,jakarta.enterprise.context.spi.Context
,org.jboss.weld.context.ManagedContext
,org.jboss.weld.context.WeldAlterableContext
- Direct Known Subclasses:
RequestContextImpl
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 void
cleanup()
protected void
destroy()
Destroys the contextprotected BeanStore
getBeanStore()
Gets the bean storeprotected void
setBeanStore(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
-
-
-
-
Constructor Detail
-
AbstractUnboundContext
public AbstractUnboundContext(String contextId, boolean multithreaded)
-
-
Method Detail
-
getBeanStore
protected BeanStore getBeanStore()
Gets the bean store- Specified by:
getBeanStore
in 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:AbstractContext
Destroys the context- Overrides:
destroy
in classAbstractContext
-
cleanup
public void cleanup()
- Overrides:
cleanup
in classAbstractContext
-
-