Class NonInjectionRequestScope
- java.lang.Object
-
- org.glassfish.jersey.process.internal.RequestScope
-
- org.glassfish.jersey.client.innate.inject.NonInjectionRequestScope
-
public class NonInjectionRequestScope extends RequestScope
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNonInjectionRequestScope.InstanceImplementation of the request scope instance.-
Nested classes/interfaces inherited from class org.glassfish.jersey.process.internal.RequestScope
RequestScope.RequestScopeConfigurator
-
-
Constructor Summary
Constructors Constructor Description NonInjectionRequestScope()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RequestContextcreateContext()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:RequestScopeCreates 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:
createContextin classRequestScope- Returns:
- New suspended request scope context.
-
-