public class Hk2RequestScope extends RequestScope
|Modifier and Type||Class and Description|
Implementation of the request scope instance.
|Constructor and Description|
|Modifier and Type||Method and Description|
Creates a new instance of the
activate, current, isActive, referenceCurrent, release, resume, runInScope, runInScope, runInScope, runInScope, runInScope, runInScope, shutdown, suspend, suspendCurrent
public RequestContext createContext()
request 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();
Copyright © 2007-2021, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.