Package com.google.inject.servlet
Class ServletScopes.RequestScope
java.lang.Object
com.google.inject.servlet.ServletScopes.RequestScope
- All Implemented Interfaces:
Scope
- Enclosing class:
- ServletScopes
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
RequestScope
private RequestScope()
-
-
Method Details
-
scope
Description copied from interface:Scope
Scopes a provider. The returned provider returns objects from this scope. If an object does not exist in this scope, the provider can use the given unscoped provider to retrieve one.Scope implementations are strongly encouraged to override
Object.toString()
in the returned provider and include the backing provider'stoString()
output. -
toString
Description copied from interface:Scope
A short but useful description of this scope. For comparison, the standard scopes that ship with guice use the descriptions"Scopes.SINGLETON"
,"ServletScopes.SESSION"
and"ServletScopes.REQUEST"
.
-