public static boolean hasBeanDefiningAnnotation(AnnotatedType<?> annotatedType, Set<Class<? extends Annotation>> metaAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : BEAN_DEFINING_ANNOTATIONS) { if (annotatedType.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : metaAnnotations) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class if (hasBeanDefiningMetaAnnotationSpecified(annotatedType.getAnnotations(), metaAnnotation)) { return true; } } return false; }
public static boolean hasBeanDefiningAnnotation(AnnotatedType<?> annotatedType, Set<Class<? extends Annotation>> metaAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : BEAN_DEFINING_ANNOTATIONS) { if (annotatedType.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : metaAnnotations) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class if (hasBeanDefiningMetaAnnotationSpecified(annotatedType.getAnnotations(), metaAnnotation)) { return true; } } return false; }
public static boolean hasBeanDefiningAnnotation(AnnotatedType<?> annotatedType, Set<Class<? extends Annotation>> metaAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : BEAN_DEFINING_ANNOTATIONS) { if (annotatedType.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : metaAnnotations) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class if (hasBeanDefiningMetaAnnotationSpecified(annotatedType.getAnnotations(), metaAnnotation)) { return true; } } return false; }
public static boolean hasBeanDefiningAnnotation(AnnotatedType<?> annotatedType, Set<Class<? extends Annotation>> metaAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : BEAN_DEFINING_ANNOTATIONS) { if (annotatedType.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : metaAnnotations) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class if (hasBeanDefiningMetaAnnotationSpecified(annotatedType.getAnnotations(), metaAnnotation)) { return true; } } return false; }
public static boolean hasBeanDefiningAnnotation(AnnotatedType<?> annotatedType, Set<Class<? extends Annotation>> metaAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : BEAN_DEFINING_ANNOTATIONS) { if (annotatedType.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : metaAnnotations) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class if (hasBeanDefiningMetaAnnotationSpecified(annotatedType.getAnnotations(), metaAnnotation)) { return true; } } return false; }
public static boolean hasBeanDefiningAnnotation(AnnotatedType<?> annotatedType, Set<Class<? extends Annotation>> metaAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : BEAN_DEFINING_ANNOTATIONS) { if (annotatedType.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : metaAnnotations) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class if (hasBeanDefiningMetaAnnotationSpecified(annotatedType.getAnnotations(), metaAnnotation)) { return true; } } return false; }