Returns true if this scope is the ProductionScope @ProductionScope scope.
()
| 88 | |
| 89 | /** Returns {@code true} if this scope is the {@link ProductionScope @ProductionScope} scope. */ |
| 90 | public final boolean isProductionScope() { |
| 91 | return isScope(ProductionScope.class); |
| 92 | } |
| 93 | |
| 94 | private boolean isScope(Class<? extends Annotation> annotation) { |
| 95 | return scopeAnnotationElement().getQualifiedName().contentEquals(annotation.getCanonicalName()); |