public class SessionScope extends Object implements com.google.inject.Scope
Modifier and Type | Class and Description |
---|---|
static class |
SessionScope.Memento |
Constructor and Description |
---|
SessionScope() |
Modifier and Type | Method and Description |
---|---|
void |
enter() |
void |
enter(SessionScope.Memento memento) |
void |
exit() |
SessionScope.Memento |
memento() |
<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()
public void enter(SessionScope.Memento memento)
public void exit()
public SessionScope.Memento memento()
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.