Package com.google.inject.servlet
Interface RequestScoper
-
public interface RequestScoper
Object that can be used to apply a request scope to a block of code.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
RequestScoper.CloseableScope
Closeable subclass that does not throw any exceptions from close.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestScoper.CloseableScope
open()
Opens up the request scope until the returned object is closed.
-
-
-
Method Detail
-
open
RequestScoper.CloseableScope open()
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.
-
-