| Constructor and Description |
|---|
SingletonScope() |
| Modifier and Type | Method and Description |
|---|---|
<T> Provider<T> |
scope(Key<T> key,
Provider<T> creator)
Scopes a provider.
|
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.
Copyright © 2006–2015 Google, Inc.. All rights reserved.