Package com.google.inject.servlet
Class ServletScopes.Context
java.lang.Object
com.google.inject.servlet.ServletScopes.Context
- All Implemented Interfaces:
RequestScoper
- Enclosing class:
ServletScopes
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.google.inject.servlet.RequestScoper
RequestScoper.CloseableScope
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionopen()
Opens up the request scope until the returned object is closed.
-
Field Details
-
map
-
lock
-
-
Constructor Details
-
Context
private Context()
-
-
Method Details
-
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 interfaceRequestScoper
-