Creates a Scope object from the javax.inject.Scope-annotated annotation type.
(AnnotationMirror scopeAnnotation)
| 58 | * Creates a {@link Scope} object from the {@link javax.inject.Scope}-annotated annotation type. |
| 59 | */ |
| 60 | public static Scope scope(AnnotationMirror scopeAnnotation) { |
| 61 | checkArgument(isScope(scopeAnnotation)); |
| 62 | return new AutoValue_Scope(AnnotationMirrors.equivalence().wrap(scopeAnnotation)); |
| 63 | } |
| 64 | |
| 65 | /** |
| 66 | * Returns {@code true} if {@link #scopeAnnotation()} is a {@link javax.inject.Scope} annotation. |