Class ContextTracker<ContextT extends TrackableContext<? super ContextT>>


  • public class ContextTracker<ContextT extends TrackableContext<? super ContextT>>
    extends Object
    Allows to track which Thread is running within which Context. A ContextTracker instance is associated with one particular type of contexts represented as a subclass of TrackableContext, here denoted as ContextT. For example: a Tracker of which Thread runs within a Context of which HttpServletRequest.

    ContextTracker instances are usually created at an app startup to be in turn used by instances of ContextScopes. See code organization guidelines for deriving libs in the package docs.

    • Constructor Detail

      • ContextTracker

        public ContextTracker()