public static boolean hasBeanDefiningAnnotation(Class<?> clazz, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : initialBeanDefiningAnnotations) { if (clazz.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : META_ANNOTATIONS) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class // Also we don't cache the results and rely completely on the reflection optimizations if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } return false; } }
public static boolean hasBeanDefiningAnnotation(Class<?> clazz, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : initialBeanDefiningAnnotations) { if (clazz.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : META_ANNOTATIONS) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class // Also we don't cache the results and rely completely on the reflection optimizations if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } return false; } }
public static boolean hasBeanDefiningAnnotation(Class<?> clazz, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : initialBeanDefiningAnnotations) { if (clazz.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : META_ANNOTATIONS) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class // Also we don't cache the results and rely completely on the reflection optimizations if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } return false; } }
public static boolean hasBeanDefiningAnnotation(Class<?> clazz, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : initialBeanDefiningAnnotations) { if (clazz.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : META_ANNOTATIONS) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class // Also we don't cache the results and rely completely on the reflection optimizations if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } return false; } }
public static boolean hasBeanDefiningAnnotation(Class<?> clazz, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : initialBeanDefiningAnnotations) { if (clazz.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : META_ANNOTATIONS) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class // Also we don't cache the results and rely completely on the reflection optimizations if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } return false; } }
public static boolean hasBeanDefiningAnnotation(Class<?> clazz, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : initialBeanDefiningAnnotations) { if (clazz.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : META_ANNOTATIONS) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class // Also we don't cache the results and rely completely on the reflection optimizations if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } return false; } }
public static boolean hasBeanDefiningAnnotation(Class<?> clazz, Set<Class<? extends Annotation>> initialBeanDefiningAnnotations) { for (Class<? extends Annotation> beanDefiningAnnotation : initialBeanDefiningAnnotations) { if (clazz.isAnnotationPresent(beanDefiningAnnotation)) { return true; } } for (Class<? extends Annotation> metaAnnotation : META_ANNOTATIONS) { // The check is not perfomed recursively as bean defining annotations must be declared directly on a bean class // Also we don't cache the results and rely completely on the reflection optimizations if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } return false; } }
private boolean containsBeanDefiningAnnotation(ClassInfo cinfo, String className) { for (Entry<DotName, List<AnnotationInstance>> entry : cinfo.annotations().entrySet()) { if (beanDefiningAnnotations.contains(entry.getKey())) { return true; } if (isDeclaredOnBeanClass(entry, cinfo) && cindex.getClassByName(entry.getKey()) == null) { // Annotation not found in the composite index - falling back to reflection Class<?> clazz = Reflections.loadClass(resourceLoader, className); if (clazz != null) { for (Class<? extends Annotation> metaAnnotation : Reflections.META_ANNOTATIONS) { if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } } } } return false; }
private boolean containsBeanDefiningAnnotation(ClassInfo cinfo, String className) { for (Entry<DotName, List<AnnotationInstance>> entry : cinfo.annotations().entrySet()) { if (beanDefiningAnnotations.contains(entry.getKey())) { return true; } if (isDeclaredOnBeanClass(entry, cinfo) && cindex.getClassByName(entry.getKey()) == null) { // Annotation not found in the composite index - falling back to reflection Class<?> clazz = Reflections.loadClass(resourceLoader, className); if (clazz != null) { for (Class<? extends Annotation> metaAnnotation : Reflections.META_ANNOTATIONS) { if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } } } } return false; }
private boolean containsBeanDefiningAnnotation(ClassInfo cinfo, String className) { for (Entry<DotName, List<AnnotationInstance>> entry : cinfo.annotations().entrySet()) { if (beanDefiningAnnotations.contains(entry.getKey())) { return true; } if (isDeclaredOnBeanClass(entry, cinfo) && cindex.getClassByName(entry.getKey()) == null) { // Annotation not found in the composite index - falling back to reflection Class<?> clazz = Reflections.loadClass(resourceLoader, className); if (clazz != null) { for (Class<? extends Annotation> metaAnnotation : Reflections.META_ANNOTATIONS) { if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } } } } return false; }
private boolean containsBeanDefiningAnnotation(ClassInfo cinfo, String className) { for (Entry<DotName, List<AnnotationInstance>> entry : cinfo.annotations().entrySet()) { if (beanDefiningAnnotations.contains(entry.getKey())) { return true; } if (isDeclaredOnBeanClass(entry, cinfo) && cindex.getClassByName(entry.getKey()) == null) { // Annotation not found in the composite index - falling back to reflection Class<?> clazz = Reflections.loadClass(resourceLoader, className); if (clazz != null) { for (Class<? extends Annotation> metaAnnotation : Reflections.META_ANNOTATIONS) { if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } } } } return false; }
private boolean containsBeanDefiningAnnotation(ClassInfo cinfo, String className) { for (Entry<DotName, List<AnnotationInstance>> entry : cinfo.annotations().entrySet()) { if (beanDefiningAnnotations.contains(entry.getKey())) { return true; } if (isDeclaredOnBeanClass(entry, cinfo) && cindex.getClassByName(entry.getKey()) == null) { // Annotation not found in the composite index - falling back to reflection Class<?> clazz = Reflections.loadClass(resourceLoader, className); if (clazz != null) { for (Class<? extends Annotation> metaAnnotation : Reflections.META_ANNOTATIONS) { if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } } } } return false; }
private boolean containsBeanDefiningAnnotation(ClassInfo cinfo, String className) { for (Entry<DotName, List<AnnotationInstance>> entry : cinfo.annotations().entrySet()) { if (beanDefiningAnnotations.contains(entry.getKey())) { return true; } if (isDeclaredOnBeanClass(entry, cinfo) && cindex.getClassByName(entry.getKey()) == null) { // Annotation not found in the composite index - falling back to reflection Class<?> clazz = Reflections.loadClass(resourceLoader, className); if (clazz != null) { for (Class<? extends Annotation> metaAnnotation : Reflections.META_ANNOTATIONS) { if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } } } } return false; }
private boolean containsBeanDefiningAnnotation(ClassInfo cinfo, String className) { for (Entry<DotName, List<AnnotationInstance>> entry : cinfo.annotations().entrySet()) { if (beanDefiningAnnotations.contains(entry.getKey())) { return true; } if (isDeclaredOnBeanClass(entry, cinfo) && cindex.getClassByName(entry.getKey()) == null) { // Annotation not found in the composite index - falling back to reflection Class<?> clazz = Reflections.loadClass(resourceLoader, className); if (clazz != null) { for (Class<? extends Annotation> metaAnnotation : Reflections.META_ANNOTATIONS) { if (hasBeanDefiningMetaAnnotationSpecified(clazz.getAnnotations(), metaAnnotation)) { return true; } } } } } return false; }