Class CdiRequestContext

All Implemented Interfaces:

public final class CdiRequestContext extends Object implements RequestContext
Implementation of the request context.
  • Method Details

    • getReference

      public RequestContext getReference()
      Get a "new" reference of the scope instance. This will increase the internal reference counter which prevents the scope instance to be destroyed until a release() method is explicitly called (once per each getReference() method call).
      Specified by:
      getReference in interface RequestContext
      referenced scope instance.
    • release

      public void release()
      Release a single reference to the current request scope instance.

      Once all instance references are released, the instance will be recycled.

      Specified by:
      release in interface RequestContext
    • toString

      public String toString()
      toString in class Object