Package com.google.inject.servlet
Class ServletScopes.Context
- java.lang.Object
-
- com.google.inject.servlet.ServletScopes.Context
-
- All Implemented Interfaces:
RequestScoper
- Enclosing class:
- ServletScopes
private static class ServletScopes.Context extends java.lang.Object implements RequestScoper
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.inject.servlet.RequestScoper
RequestScoper.CloseableScope
-
-
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.
-
-
-
Field Detail
-
map
final java.util.Map<Key<?>,java.lang.Object> map
-
lock
final java.util.concurrent.locks.Lock lock
-
-
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 interfaceRequestScoper
-
-