Class 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 Details

    • AbstractBoundContext

      public AbstractBoundContext(String contextId, boolean multithreaded)
  • Method Details

    • getBeanStore

      protected BoundBeanStore getBeanStore()
      Gets the bean store
      Specified by:
      getBeanStore in class AbstractContext
      Returns:
      The bean store
    • setBeanStore

      protected void setBeanStore(BoundBeanStore beanStore)
      Sets the bean store
      Parameters:
      beanStore - The bean store
    • cleanup

      public void cleanup()
      Overrides:
      cleanup in class AbstractContext
    • activate

      public void activate()
      Specified by:
      activate in interface org.jboss.weld.context.ManagedContext
      Overrides:
      activate in class AbstractManagedContext
    • deactivate

      public void deactivate()
      Specified by:
      deactivate in interface org.jboss.weld.context.ManagedContext
      Overrides:
      deactivate in class AbstractManagedContext
    • dissociate

      public boolean dissociate(S storage)
      Specified by:
      dissociate in interface org.jboss.weld.context.BoundContext<S>
    • getAllContextualInstances

      public Collection<org.jboss.weld.context.api.ContextualInstance<?>> getAllContextualInstances()
      Specified by:
      getAllContextualInstances in interface org.jboss.weld.context.WeldAlterableContext
    • clearAndSet

      public void clearAndSet(Collection<org.jboss.weld.context.api.ContextualInstance<?>> setOfInstances)
      Specified by:
      clearAndSet in interface org.jboss.weld.context.WeldAlterableContext