public static <T, E> MergedStereotypes<T, E> of(EnhancedAnnotated<T, E> annotated, BeanManagerImpl manager) { return of(annotated.getMetaAnnotations(Stereotype.class), manager); }
protected void initQualifiers(EnhancedAnnotated<?, ?> annotated) { initQualifiers(annotated.getMetaAnnotations(Qualifier.class)); }
public Set<Annotation> getMetaAnnotations(Class<? extends Annotation> metaAnnotationType) { return delegate().getMetaAnnotations(metaAnnotationType); }
public static <T, E> MergedStereotypes<T, E> of(EnhancedAnnotated<T, E> annotated, BeanManagerImpl manager) { return of(annotated.getMetaAnnotations(Stereotype.class), manager); }
public Set<Annotation> getMetaAnnotations(Class<? extends Annotation> metaAnnotationType) { return delegate().getMetaAnnotations(metaAnnotationType); }
protected void initQualifiers(EnhancedAnnotated<?, ?> annotated) { initQualifiers(annotated.getMetaAnnotations(Qualifier.class)); }
public static <T, E> MergedStereotypes<T, E> of(EnhancedAnnotated<T, E> annotated, BeanManagerImpl manager) { return of(annotated.getMetaAnnotations(Stereotype.class), manager); }
protected void initQualifiers(EnhancedAnnotated<?, ?> annotated) { initQualifiers(annotated.getMetaAnnotations(Qualifier.class)); }
protected void initQualifiers(EnhancedAnnotated<?, ?> annotated) { initQualifiers(annotated.getMetaAnnotations(Qualifier.class)); }
protected void initQualifiers(EnhancedAnnotated<?, ?> annotated) { initQualifiers(annotated.getMetaAnnotations(Qualifier.class)); }
public static <T, E> MergedStereotypes<T, E> of(EnhancedAnnotated<T, E> annotated, BeanManagerImpl manager) { return of(annotated.getMetaAnnotations(Stereotype.class), manager); }
public static <T, E> MergedStereotypes<T, E> of(EnhancedAnnotated<T, E> annotated, BeanManagerImpl manager) { return of(annotated.getMetaAnnotations(Stereotype.class), manager); }
protected void initQualifiers(EnhancedAnnotated<?, ?> annotated) { initQualifiers(annotated.getMetaAnnotations(Qualifier.class)); }
public static <T, E> MergedStereotypes<T, E> of(EnhancedAnnotated<T, E> annotated, BeanManagerImpl manager) { return of(annotated.getMetaAnnotations(Stereotype.class), manager); }
private void checkScopeAnnotations(InjectionPoint ij, MetaAnnotationStore metaAnnotationStore) { Annotated annotated = ij.getAnnotated(); if (annotated instanceof EnhancedAnnotated<?, ?>) { EnhancedAnnotated<?, ?> weldAnnotated = (EnhancedAnnotated<?, ?>) annotated; Set<Annotation> scopes = weldAnnotated.getMetaAnnotations(Scope.class); Set<Annotation> normalScopes = weldAnnotated.getMetaAnnotations(NormalScope.class); for (Annotation annotation : scopes) { logScopeOnInjectionPointWarning(ij, annotation); } for (Annotation annotation : normalScopes) { logScopeOnInjectionPointWarning(ij, annotation); } } else { for (Annotation annotation : annotated.getAnnotations()) { if (hasScopeMetaAnnotation(annotation)) { logScopeOnInjectionPointWarning(ij, annotation); } } } }
private void checkScopeAnnotations(InjectionPoint ij, MetaAnnotationStore metaAnnotationStore) { Annotated annotated = ij.getAnnotated(); if (annotated instanceof EnhancedAnnotated<?, ?>) { EnhancedAnnotated<?, ?> weldAnnotated = (EnhancedAnnotated<?, ?>) annotated; Set<Annotation> scopes = weldAnnotated.getMetaAnnotations(Scope.class); Set<Annotation> normalScopes = weldAnnotated.getMetaAnnotations(NormalScope.class); for (Annotation annotation : scopes) { logScopeOnInjectionPointWarning(ij, annotation); } for (Annotation annotation : normalScopes) { logScopeOnInjectionPointWarning(ij, annotation); } } else { for (Annotation annotation : annotated.getAnnotations()) { if (hasScopeMetaAnnotation(annotation)) { logScopeOnInjectionPointWarning(ij, annotation); } } } }
private void checkScopeAnnotations(InjectionPoint ij, MetaAnnotationStore metaAnnotationStore) { Annotated annotated = ij.getAnnotated(); if (annotated instanceof EnhancedAnnotated<?, ?>) { EnhancedAnnotated<?, ?> weldAnnotated = (EnhancedAnnotated<?, ?>) annotated; Set<Annotation> scopes = weldAnnotated.getMetaAnnotations(Scope.class); Set<Annotation> normalScopes = weldAnnotated.getMetaAnnotations(NormalScope.class); for (Annotation annotation : scopes) { logScopeOnInjectionPointWarning(ij, annotation); } for (Annotation annotation : normalScopes) { logScopeOnInjectionPointWarning(ij, annotation); } } else { for (Annotation annotation : annotated.getAnnotations()) { if (hasScopeMetaAnnotation(annotation)) { logScopeOnInjectionPointWarning(ij, annotation); } } } }
private void checkScopeAnnotations(InjectionPoint ij, MetaAnnotationStore metaAnnotationStore) { Annotated annotated = ij.getAnnotated(); if (annotated instanceof EnhancedAnnotated<?, ?>) { EnhancedAnnotated<?, ?> weldAnnotated = (EnhancedAnnotated<?, ?>) annotated; Set<Annotation> scopes = weldAnnotated.getMetaAnnotations(Scope.class); Set<Annotation> normalScopes = weldAnnotated.getMetaAnnotations(NormalScope.class); for (Annotation annotation : scopes) { logScopeOnInjectionPointWarning(ij, annotation); } for (Annotation annotation : normalScopes) { logScopeOnInjectionPointWarning(ij, annotation); } } else { for (Annotation annotation : annotated.getAnnotations()) { if (hasScopeMetaAnnotation(annotation)) { logScopeOnInjectionPointWarning(ij, annotation); } } } }
private void checkScopeAnnotations(InjectionPoint ij, MetaAnnotationStore metaAnnotationStore) { Annotated annotated = ij.getAnnotated(); if (annotated instanceof EnhancedAnnotated<?, ?>) { EnhancedAnnotated<?, ?> weldAnnotated = (EnhancedAnnotated<?, ?>) annotated; Set<Annotation> scopes = weldAnnotated.getMetaAnnotations(Scope.class); Set<Annotation> normalScopes = weldAnnotated.getMetaAnnotations(NormalScope.class); for (Annotation annotation : scopes) { logScopeOnInjectionPointWarning(ij, annotation); } for (Annotation annotation : normalScopes) { logScopeOnInjectionPointWarning(ij, annotation); } } else { for (Annotation annotation : annotated.getAnnotations()) { if (hasScopeMetaAnnotation(annotation)) { logScopeOnInjectionPointWarning(ij, annotation); } } } }
private void checkScopeAnnotations(InjectionPoint ij, MetaAnnotationStore metaAnnotationStore) { Annotated annotated = ij.getAnnotated(); if (annotated instanceof EnhancedAnnotated<?, ?>) { EnhancedAnnotated<?, ?> weldAnnotated = (EnhancedAnnotated<?, ?>) annotated; Set<Annotation> scopes = weldAnnotated.getMetaAnnotations(Scope.class); Set<Annotation> normalScopes = weldAnnotated.getMetaAnnotations(NormalScope.class); for (Annotation annotation : scopes) { logScopeOnInjectionPointWarning(ij, annotation); } for (Annotation annotation : normalScopes) { logScopeOnInjectionPointWarning(ij, annotation); } } else { for (Annotation annotation : annotated.getAnnotations()) { if (hasScopeMetaAnnotation(annotation)) { logScopeOnInjectionPointWarning(ij, annotation); } } } }