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
Nested ClassesModifier and TypeClassDescriptionstatic classRequest scope injection binder. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(ActiveDescriptor<?> descriptor) voiddestroyOne(ActiveDescriptor<?> descriptor) <U> UfindOrCreate(ActiveDescriptor<U> activeDescriptor, ServiceHandle<?> root) Class<? extends Annotation>getScope()booleanisActive()voidshutdown()boolean
-
Constructor Details
-
RequestContext
-
-
Method Details
-
getScope
- Specified by:
getScopein interfaceContext<RequestScoped>
-
findOrCreate
- Specified by:
findOrCreatein interfaceContext<RequestScoped>
-
containsKey
- Specified by:
containsKeyin interfaceContext<RequestScoped>
-
supportsNullCreation
public boolean supportsNullCreation()- Specified by:
supportsNullCreationin interfaceContext<RequestScoped>
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceContext<RequestScoped>
-
destroyOne
- Specified by:
destroyOnein interfaceContext<RequestScoped>
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceContext<RequestScoped>
-