@Override protected String fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) { ROOT_LOGGER.legacySecurityDomainAnnotationIsUsed(annotationInstance.target().asClass().toString()); return null; } }
instances.forEach(ai -> { AnnotationTarget target = ai.target(); if (target.kind() == AnnotationTarget.Kind.CLASS) { extractAndAddPackageInfo(target.asClass(), packages, indexView); instances.forEach(ai -> { AnnotationTarget target = ai.target(); switch (target.kind()) { case CLASS: extractAndAddPackageInfo(target.asClass(), packages, indexView); break; case METHOD: extractAndAddPackageInfo(target.asMethod().declaringClass(), packages, indexView); break; default:
Collection<AnnotationInstance> appPathAnnotations = index.getAnnotations(APP_PATH); for (AnnotationInstance annotation : appPathAnnotations) { if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) { appPath = Optional.of(annotation.value().asString()); if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) { ClassInfo classInfo = annotation.target().asClass();
private boolean hasInjectConstructor() { List<AnnotationInstance> annotationInstances = classInfo.annotations().get(DOT_NAME_INJECT); if (annotationInstances != null) { for (AnnotationInstance instance : annotationInstances) { AnnotationTarget target = instance.target(); if (target instanceof MethodInfo) { MethodInfo methodInfo = target.asMethod(); if (methodInfo.name().equals(CONSTRUCTOR_METHOD_NAME)) { return true; } } } } return false; }
for (AnnotationInstance ai : instances) { AnnotationTarget target = ai.target(); if (target.kind() == AnnotationTarget.Kind.CLASS) { Object value = ai.value().value(); if (value != null) {
Collection<AnnotationInstance> appPathAnnotations = index.getAnnotations(APP_PATH); for (AnnotationInstance annotation : appPathAnnotations) { if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) { appPath = Optional.of(annotation.value().asString()); if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) { ClassInfo classInfo = annotation.target().asClass();
private boolean hasInjectConstructor() { List<AnnotationInstance> annotationInstances = classInfo.annotations().get(DOT_NAME_INJECT); if (annotationInstances != null) { for (AnnotationInstance instance : annotationInstances) { AnnotationTarget target = instance.target(); if (target instanceof MethodInfo) { MethodInfo methodInfo = target.asMethod(); if (methodInfo.name().equals(CONSTRUCTOR_METHOD_NAME)) { return true; } } } } return false; }
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 boolean hasInjectConstructor() { List<AnnotationInstance> annotationInstances = classInfo.annotations().get(DOT_NAME_INJECT); if (annotationInstances != null) { for (AnnotationInstance instance : annotationInstances) { AnnotationTarget target = instance.target(); if (target instanceof MethodInfo) { MethodInfo methodInfo = target.asMethod(); if (methodInfo.name().equals(CONSTRUCTOR_METHOD_NAME)) { return true; } } } } return false; }
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 boolean hasInjectConstructor() { List<AnnotationInstance> annotationInstances = classInfo.annotations().get(DOT_NAME_INJECT); if (annotationInstances != null) { for (AnnotationInstance instance : annotationInstances) { AnnotationTarget target = instance.target(); if (target instanceof MethodInfo) { MethodInfo methodInfo = target.asMethod(); if (methodInfo.name().equals(CONSTRUCTOR_METHOD_NAME)) { return true; } } } } return false; }
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 boolean hasInjectConstructor() { List<AnnotationInstance> annotationInstances = classInfo.annotations().get(DOT_NAME_INJECT); if (annotationInstances != null) { for (AnnotationInstance instance : annotationInstances) { AnnotationTarget target = instance.target(); if (target instanceof MethodInfo) { MethodInfo methodInfo = target.asMethod(); if (methodInfo.name().equals(CONSTRUCTOR_METHOD_NAME)) { return true; } } } } return false; }
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 boolean hasInjectConstructor() { List<AnnotationInstance> annotationInstances = classInfo.annotations().get(DOT_NAME_INJECT); if (annotationInstances != null) { for (AnnotationInstance instance : annotationInstances) { AnnotationTarget target = instance.target(); if (target instanceof MethodInfo) { MethodInfo methodInfo = target.asMethod(); if (methodInfo.name().equals(CONSTRUCTOR_METHOD_NAME)) { return true; } } } } return false; }
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(); }