Class ThreadContext

  • All Implemented Interfaces:
    jakarta.enterprise.context.spi.AlterableContext, jakarta.enterprise.context.spi.Context, org.jboss.weld.context.ManagedContext, org.jboss.weld.context.WeldAlterableContext

    public class ThreadContext
    extends org.jboss.weld.contexts.AbstractUnboundContext
    The thread context. Works with @ThreadScoped beans, maintaining a separate context for each thread.
    Author:
    Nicklas Karlsson, Peter Royle
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void activate()  
      Class<? extends Annotation> getScope()  
      • Methods inherited from class org.jboss.weld.contexts.AbstractUnboundContext

        cleanup, destroy, getBeanStore, setBeanStore
      • Methods inherited from class org.jboss.weld.contexts.AbstractManagedContext

        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 interface jakarta.enterprise.context.spi.AlterableContext

        destroy
      • Methods inherited from interface jakarta.enterprise.context.spi.Context

        get, get
      • Methods inherited from interface org.jboss.weld.context.WeldAlterableContext

        clearAndSet, getAllContextualInstances
    • Constructor Detail

      • ThreadContext

        public ThreadContext​(String contextId)
      • ThreadContext

        public ThreadContext()
    • Method Detail

      • activate

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