@Override protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) { ROOT_LOGGER.legacySecurityDomainAnnotationIsUsed(annotationInstance.target().asClass().toString()); return null; } }
for (AnnotationInstance annotation : pathAnnotations) { if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) { ClassInfo classInfo = annotation.target().asClass();
for (AnnotationInstance annotation : pathAnnotations) { if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) { ClassInfo classInfo = annotation.target().asClass();
private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = instance.target().asClass(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }
private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = instance.target().asClass(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }
private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = instance.target().asClass(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }
private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = instance.target().asClass(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }
private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = instance.target().asClass(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }
private Set<DotName> buildBeanDefiningAnnotationSet(Set<Class<? extends Annotation>> initialBeanDefiningAnnotations, CompositeIndex index) { ImmutableSet.Builder<DotName> beanDefiningAnnotations = ImmutableSet.builder(); for (Class<? extends Annotation> annotation : initialBeanDefiningAnnotations) { final DotName annotationDotName = DotName.createSimple(annotation.getName()); if (isMetaAnnotation(annotation)) { // find annotations annotated with this meta-annotation for (AnnotationInstance instance : index.getAnnotations(annotationDotName)) { if (instance.target() instanceof ClassInfo) { ClassInfo classInfo = instance.target().asClass(); if ((classInfo.flags() & ANNOTATION) != 0) { beanDefiningAnnotations.add(classInfo.name()); } } } } else { beanDefiningAnnotations.add(annotationDotName); } } return beanDefiningAnnotations.build(); }