Class Hk2RequestScope

java.lang.Object
org.glassfish.jersey.process.internal.RequestScope
org.glassfish.jersey.inject.hk2.Hk2RequestScope

public class Hk2RequestScope extends RequestScope
  • Constructor Details

    • Hk2RequestScope

      public Hk2RequestScope()
  • Method Details

    • createContext

      public RequestContext createContext()
      Description copied from class: RequestScope
      Creates a new instance of the 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();
       
      Specified by:
      createContext in class RequestScope
      Returns:
      New suspended request scope context.