/** * {@inheritDoc} */ public List<AnnotationInstance> getAnnotations(final DotName annotationName) { final List<AnnotationInstance> allInstances = new ArrayList<AnnotationInstance>(); for (IndexView index : indexes) { final Collection<AnnotationInstance> list = index.getAnnotations(annotationName); if (list != null) { allInstances.addAll(list); } } return Collections.unmodifiableList(allInstances); }
@Override public void process() { Collection<AnnotationInstance> annos = index.getAnnotations(DotName.createSimple(Advertise.class.getName())); Collection<AnnotationInstance> repeatingAnnos = index.getAnnotations(DotName.createSimple(Advertises.class.getName())); Stream.concat(annos.stream(), repeatingAnnos .stream() .flatMap(anno -> Stream.of(anno.value().asNestedArray()))) .forEach(anno -> advertise(archive, anno)); }
Collection<AnnotationInstance> instances = indexView.getAnnotations(dotName); Set<String> applicationPaths = new HashSet<>(); for (AnnotationInstance ai : instances) {
if (indexView != null) { DotName dotName = DotName.createSimple(Api.class.getName()); Collection<AnnotationInstance> instances = indexView.getAnnotations(dotName); instances.forEach(ai -> { AnnotationTarget target = ai.target(); instances = indexView.getAnnotations(dotName); instances.forEach(ai -> { AnnotationTarget target = ai.target();
Collection<AnnotationInstance> appPathAnnotations = index.getAnnotations(APP_PATH); for (AnnotationInstance annotation : appPathAnnotations) { if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) { Collection<AnnotationInstance> pathAnnotations = index.getAnnotations(PATH); for (AnnotationInstance annotation : pathAnnotations) { if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) {
Collection<AnnotationInstance> appPathAnnotations = index.getAnnotations(APP_PATH); for (AnnotationInstance annotation : appPathAnnotations) { if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) { Collection<AnnotationInstance> pathAnnotations = index.getAnnotations(PATH); for (AnnotationInstance annotation : pathAnnotations) { if (annotation.target().kind() == AnnotationTarget.Kind.CLASS) {
WARArchive war = archive.as(WARArchive.class); Collection<AnnotationInstance> lcAnnotations = index.getAnnotations(LOGIN_CONFIG); for (AnnotationInstance lc : lcAnnotations) { AnnotationValue authMethod = lc.value("authMethod");