Interface RequestContext

All Known Implementing Classes:
CdiRequestContext, Hk2RequestScope.Instance

public interface RequestContext
Wrapper for externally provided request context data.
Author:
Petr Bouda
  • Method Summary

    Modifier and Type
    Method
    Description
    Get a "new" reference of the scope instance.
    void
    Release a single reference to the current request scope instance.
  • Method Details

    • getReference

      RequestContext getReference()
      Get a "new" reference of the scope instance. RequestContext implementation is able to track referenced instances and then provide any additional logic during the releasing.
      Returns:
      referenced scope instance.
    • release

      void release()
      Release a single reference to the current request scope instance. Once all instance references are released, the instance will be recycled.