MCPcopy Index your code
hub / github.com/google/dagger / singletonScope

Method singletonScope

java/dagger/internal/codegen/Scopes.java:49–51  ·  view source on GitHub ↗

Returns a representation for Singleton @Singleton scope.

(Elements elements)

Source from the content-addressed store, hash-verified

47
48 /** Returns a representation for {@link Singleton @Singleton} scope. */
49 static Scope singletonScope(Elements elements) {
50 return scope(elements, Singleton.class);
51 }
52
53 private static Scope scope(Elements elements, Class<? extends Annotation> scopeAnnotationClass) {
54 return scope(elements.getTypeElement(scopeAnnotationClass.getCanonicalName()));

Callers 1

Calls 1

scopeMethod · 0.95

Tested by

no test coverage detected