public final class GuiceSimpleScope.InScope extends Object implements AutoCloseable
Obtain an instance with GuiceSimpleScope.enter().
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Exits the scope
|
<T> void |
seed(com.google.inject.Key<T> key,
T value)
Seeds a value in the current occurrence of this scope.
|
public <T> void seed(com.google.inject.Key<T> key,
T value)
key - The key to seed.value - The value for the key.public void close()
close in interface AutoCloseable