Class ContextScope<Ctx extends ServerSideContext<Ctx>>

  • All Implemented Interfaces:
    com.google.inject.Scope

    public class ContextScope<Ctx extends ServerSideContext<Ctx>>
    extends Object
    implements com.google.inject.Scope
    Scopes objects to a context of a call obtained from the associated ContextTracker.
    Scopes are thread-safe as long as context attributes that are accessed by several threads are not accessed manually using ServerSideContext's {get,set,remove}Attribute(...) methods.
    • Method Detail

      • getName

        public String getName()
      • scope

        public <T> com.google.inject.Provider<T> scope​(com.google.inject.Key<T> key,
                                                       com.google.inject.Provider<T> unscoped)
        Specified by:
        scope in interface com.google.inject.Scope
      • toString

        public String toString()
        Specified by:
        toString in interface com.google.inject.Scope
        Overrides:
        toString in class Object