Class ThreadContext
java.lang.Object
org.jboss.weld.contexts.AbstractContext
org.jboss.weld.contexts.AbstractManagedContext
org.jboss.weld.contexts.AbstractUnboundContext
org.jboss.weld.environment.se.contexts.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
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.jboss.weld.contexts.AbstractUnboundContext
cleanup, destroy, getBeanStore, setBeanStoreMethods inherited from class org.jboss.weld.contexts.AbstractManagedContext
deactivate, invalidate, isActive, isValid, removeState, setActiveMethods inherited from class org.jboss.weld.contexts.AbstractContext
checkContextInitialized, 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 jakarta.enterprise.context.spi.Context
get, getMethods inherited from interface org.jboss.weld.context.WeldAlterableContext
clearAndSet, getAllContextualInstances
-
Constructor Details
-
ThreadContext
-
ThreadContext
public ThreadContext()
-
-
Method Details
-
getScope
-
activate
public void activate()- Specified by:
activatein interfaceorg.jboss.weld.context.ManagedContext- Overrides:
activatein classorg.jboss.weld.contexts.AbstractManagedContext
-