Package org.jboss.weld.context
Interface RequestContext
-
- All Superinterfaces:
jakarta.enterprise.context.spi.AlterableContext,jakarta.enterprise.context.spi.Context,ManagedContext,WeldAlterableContext
- All Known Subinterfaces:
BoundRequestContext,EjbRequestContext,HttpRequestContext
public interface RequestContext extends ManagedContext
The built in request context is associated with
RequestScopedand is a managed context which can be activated, invalidated and deactivated.Weld comes with four implementation of the request context. The
HttpRequestContext, in which conversations are bound to theServletRequest, can be injected:@ Inject @ Http RequestContext requestContext;
Alternatively the
BoundRequestContextin which requests are bound aMapcan be injected:@ Inject @ Bound RequestContext requestContext;
Additionally, Weld provides an unbound request context (which is automatially bound to the thread) which can be injected:
@ Inject @ Unbound RequestContext requestContext;
Finally, Weld provides a request context which is bound to an
InvocationContextand can be injected:@ Inject @ Ejb RequestContext requestContext;
- Author:
- Pete Muir
- See Also:
BoundRequestContext,HttpRequestContext,EjbRequestContext,RequestScoped
-
-
Method Summary
-
Methods inherited from interface jakarta.enterprise.context.spi.Context
get, get, getScope, isActive
-
Methods inherited from interface org.jboss.weld.context.ManagedContext
activate, deactivate, invalidate
-
Methods inherited from interface org.jboss.weld.context.WeldAlterableContext
clearAndSet, getAllContextualInstances
-
-