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 ClassesModifier and TypeInterfaceDescriptionstatic interface
Closeable subclass that does not throw any exceptions from close. -
Method Summary
Modifier and TypeMethodDescriptionopen()
Opens up the request scope until the returned object is closed.
-
Method Details
-
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.
-