MCPcopy Create free account
hub / github.com/google/guice / scope

Method scope

core/src/com/google/inject/Scope.java:44–44  ·  view source on GitHub ↗

Scopes a provider. The returned provider returns objects from this scope. If an object does not exist in this scope, the provider can use the given unscoped provider to retrieve one. Scope implementations are strongly encouraged to override Object#toString in the returned provider and in

(Key<T> key, Provider<T> unscoped)

Source from the content-addressed store, hash-verified

42 * the requested object doesn't already exist in this scope
43 */
44 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped);
45
46 /**
47 * A short but useful description of this scope. For comparison, the standard scopes that ship

Callers 3

scopeMethod · 0.95
scopeMethod · 0.65
visitScopeMethod · 0.65

Implementers 13

TestScopecore/test/com/googlecode/guice/Jakarta
TwoAtATimeScopecore/test/com/google/inject/BinderTest
RememberProviderScopecore/test/com/google/inject/ScopesTest
ProviderGetScopecore/test/com/google/inject/ScopesTest
BasicSingletoncore/test/com/google/inject/CircularDe
SingleUseScopecore/test/com/google/inject/util/Overr
SingletonScopecore/src/com/google/inject/internal/Si
TestScopeextensions/throwingproviders/test/com/
RequestScopeextensions/servlet/src/com/google/inje
SessionScopeextensions/servlet/src/com/google/inje
OverrideModuleTestcore/test/com/google/inject/util/Overr
Scopescore/src/com/google/inject/Scopes.java

Calls

no outgoing calls

Tested by 2

scopeMethod · 0.52
visitScopeMethod · 0.52