Package org.glassfish.jersey.inject.hk2
Class Hk2RequestScope
java.lang.Object
org.glassfish.jersey.process.internal.RequestScope
org.glassfish.jersey.inject.hk2.Hk2RequestScope
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Implementation of the request scope instance.Nested classes/interfaces inherited from class org.glassfish.jersey.process.internal.RequestScope
RequestScope.RequestScopeConfigurator
-
Constructor Summary
-
Method Summary
Methods inherited from class org.glassfish.jersey.process.internal.RequestScope
activate, current, isActive, referenceCurrent, release, resume, runInScope, runInScope, runInScope, runInScope, runInScope, runInScope, shutdown, suspend, suspendCurrent
-
Constructor Details
-
Hk2RequestScope
public Hk2RequestScope()
-
-
Method Details
-
createContext
Description copied from class:RequestScope
Creates a new instance of therequest scope context
. This instance can be then used to run task in the request scope. Returned context is suspended by default and must therefore be closed explicitly as it is shown in the following example:RequestContext context = requestScope.createContext(); requestScope.runInScope(context, someRunnableTask); context.release();
- Specified by:
createContext
in classRequestScope
- Returns:
- New suspended request scope context.
-