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

Method scope

core/test/com/google/inject/ScopesTest.java:513–516  ·  view source on GitHub ↗
(Key<T> key, Provider<T> unscoped)

Source from the content-addressed store, hash-verified

511 static final Scope CUSTOM_SCOPE =
512 new Scope() {
513 @Override
514 public <T> Provider<T> scope(Key<T> key, Provider<T> unscoped) {
515 return Scopes.SINGLETON.scope(key, unscoped);
516 }
517 };
518
519 @SuppressWarnings("InjectScopeOrQualifierAnnotationRetention") // to check failure mode

Callers

nothing calls this directly

Calls 1

scopeMethod · 0.65

Tested by

no test coverage detected