Package org.glassfish.jersey.inject.hk2
Class RequestContext
java.lang.Object
org.glassfish.jersey.inject.hk2.RequestContext
- All Implemented Interfaces:
Context<RequestScoped>
Class is able to communicate with
RequestScope
and provide request-scoped descriptors to HK2 DI provider to create or
destroy instances.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Request scope injection binder. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
containsKey
(ActiveDescriptor<?> descriptor) void
destroyOne
(ActiveDescriptor<?> descriptor) <U> U
findOrCreate
(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) Class<? extends Annotation>
getScope()
boolean
isActive()
void
shutdown()
boolean
-
Constructor Details
-
RequestContext
-
-
Method Details
-
getScope
- Specified by:
getScope
in interfaceContext<RequestScoped>
-
findOrCreate
- Specified by:
findOrCreate
in interfaceContext<RequestScoped>
-
containsKey
- Specified by:
containsKey
in interfaceContext<RequestScoped>
-
supportsNullCreation
public boolean supportsNullCreation()- Specified by:
supportsNullCreation
in interfaceContext<RequestScoped>
-
isActive
public boolean isActive()- Specified by:
isActive
in interfaceContext<RequestScoped>
-
destroyOne
- Specified by:
destroyOne
in interfaceContext<RequestScoped>
-
shutdown
public void shutdown()- Specified by:
shutdown
in interfaceContext<RequestScoped>
-