Interface RequestContext
-
public interface RequestContext
Wrapper for externally provided request context data.- Author:
- Petr Bouda
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestContext
getReference()
Get a "new" reference of the scope instance.void
release()
Release a single reference to the current request scope instance.
-
-
-
Method Detail
-
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.
-
-