|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RequestContext
The built in request context is associated with RequestScoped
and 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 the
ServletRequest
, can be injected:
@Inject @Http RequestContext requestContext;
Alternatively the BoundRequestContext
in which requests are bound a
Map
can 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
InvocationContext
and can be injected:
@Inject @Ejb RequestContext requestContext;
BoundRequestContext
,
HttpRequestContext
,
EjbRequestContext
,
RequestScoped
Method Summary |
---|
Methods inherited from interface org.jboss.weld.context.ManagedContext |
---|
activate, deactivate, invalidate |
Methods inherited from interface javax.enterprise.context.spi.Context |
---|
get, get, getScope, isActive |
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |