Package org.glassfish.jersey.inject.hk2
Class Hk2RequestScope
- java.lang.Object
-
- org.glassfish.jersey.process.internal.RequestScope
-
- org.glassfish.jersey.inject.hk2.Hk2RequestScope
-
public class Hk2RequestScope extends RequestScope
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Hk2RequestScope.Instance
Implementation of the request scope instance.-
Nested classes/interfaces inherited from class org.glassfish.jersey.process.internal.RequestScope
RequestScope.RequestScopeConfigurator
-
-
Constructor Summary
Constructors Constructor Description Hk2RequestScope()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestContext
createContext()
Creates a new instance of therequest scope context
.-
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
-
-
-
-
Method Detail
-
createContext
public RequestContext 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.
-
-