Class ServletScopes.Context

    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.concurrent.locks.Lock lock  
      (package private) java.util.Map<Key<?>,​java.lang.Object> map  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Context()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      RequestScoper.CloseableScope open()
      Opens up the request scope until the returned object is closed.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • map

        final java.util.Map<Key<?>,​java.lang.Object> map
      • lock

        final java.util.concurrent.locks.Lock lock
    • Constructor Detail

      • Context

        private Context()
    • Method Detail

      • open

        public RequestScoper.CloseableScope open()
        Description copied from interface: RequestScoper
        Opens up the request scope until the returned object is closed. Implementations should ensure (e.g. by blocking) that multiple threads cannot open the same request scope concurrently. It is allowable to open the same request scope on the same thread, as long as open/close calls are correctly nested.
        Specified by:
        open in interface RequestScoper