private static final class ServletScopes.SessionScope extends java.lang.Object implements Scope
| Modifier | Constructor and Description |
|---|---|
private |
SessionScope() |
| Modifier and Type | Method and Description |
|---|---|
<T> Provider<T> |
scope(Key<T> key,
Provider<T> creator)
Scopes a provider.
|
java.lang.String |
toString()
A short but useful description of this scope.
|
public <T> Provider<T> scope(Key<T> key, Provider<T> creator)
ScopeScope implementations are strongly encouraged to override
Object.toString() in the returned provider and include the backing
provider's toString() output.
public java.lang.String toString()
Scope"Scopes.SINGLETON", "ServletScopes.SESSION" and
"ServletScopes.REQUEST".