Package org.jboss.weld.contexts
Class AbstractBoundContext<S>
java.lang.Object
org.jboss.weld.contexts.AbstractContext
org.jboss.weld.contexts.AbstractManagedContext
org.jboss.weld.contexts.AbstractBoundContext<S>
- All Implemented Interfaces:
jakarta.enterprise.context.spi.AlterableContext,jakarta.enterprise.context.spi.Context,org.jboss.weld.context.BoundContext<S>,org.jboss.weld.context.ManagedContext,org.jboss.weld.context.WeldAlterableContext
- Direct Known Subclasses:
AbstractConversationContext,BoundRequestContextImpl,BoundSessionContextImpl
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate()voidcleanup()voidclearAndSet(Collection<org.jboss.weld.context.api.ContextualInstance<?>> setOfInstances) voidbooleandissociate(S storage) Collection<org.jboss.weld.context.api.ContextualInstance<?>>protected BoundBeanStoreGets the bean storeprotected voidsetBeanStore(BoundBeanStore beanStore) Sets the bean storeMethods inherited from class org.jboss.weld.contexts.AbstractManagedContext
invalidate, isActive, isValid, removeState, setActiveMethods inherited from class org.jboss.weld.contexts.AbstractContext
checkContextInitialized, destroy, destroy, get, get, getContextual, getId, getServiceRegistry, isMultithreadedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.enterprise.context.spi.AlterableContext
destroyMethods inherited from interface org.jboss.weld.context.BoundContext
associateMethods inherited from interface jakarta.enterprise.context.spi.Context
get, get, getScope, isActive
-
Constructor Details
-
AbstractBoundContext
-
-
Method Details
-
getBeanStore
Gets the bean store- Specified by:
getBeanStorein classAbstractContext- Returns:
- The bean store
-
setBeanStore
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
-
dissociate
- Specified by:
dissociatein interfaceorg.jboss.weld.context.BoundContext<S>
-
getAllContextualInstances
- Specified by:
getAllContextualInstancesin interfaceorg.jboss.weld.context.WeldAlterableContext
-
clearAndSet
public void clearAndSet(Collection<org.jboss.weld.context.api.ContextualInstance<?>> setOfInstances) - Specified by:
clearAndSetin interfaceorg.jboss.weld.context.WeldAlterableContext
-