Returns a representation for Singleton @Singleton scope.
(Elements elements)
| 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())); |
no test coverage detected