public class SessionScope extends Object implements com.google.inject.Scope
Modifier and Type | Class and Description |
---|---|
protected static class |
SessionScope.CachingProvider<T>
CachingProvider
|
protected static class |
SessionScope.ScopeState
ScopeState
|
Constructor and Description |
---|
SessionScope() |
Modifier and Type | Method and Description |
---|---|
void |
enter() |
void |
exit() |
protected SessionScope.ScopeState |
getScopeState() |
<T> com.google.inject.Provider<T> |
scope(com.google.inject.Key<T> key,
com.google.inject.Provider<T> unscoped) |
<T> void |
seed(Class<T> clazz,
com.google.inject.Provider<T> value) |
<T> void |
seed(Class<T> clazz,
T value) |
static <T> com.google.inject.Provider<T> |
seededKeyProvider() |
public void enter()
protected SessionScope.ScopeState getScopeState()
public void exit()
public <T> void seed(Class<T> clazz, com.google.inject.Provider<T> value)
public <T> void seed(Class<T> clazz, T value)
public <T> com.google.inject.Provider<T> scope(com.google.inject.Key<T> key, com.google.inject.Provider<T> unscoped)
scope
in interface com.google.inject.Scope
public static <T> com.google.inject.Provider<T> seededKeyProvider()
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.