/** * Sets action annotations. */ @SuppressWarnings( {"unchecked"}) public void setActionAnnotations(Class<? extends Annotation>... actionAnnotations) { this.actionAnnotations = actionAnnotations; this.actionAnnotationInstances = new ActionAnnotation<?>[actionAnnotations.length]; for (int i = 0; i < actionAnnotations.length; i++) { Class<? extends Annotation> annotationClass = actionAnnotations[i]; actionAnnotationInstances[i] = new ActionAnnotation(annotationClass); } }
/** * {@inheritDoc} */ @Override protected ActionAnnotationData<A> createAnnotationData(A annotation) { ActionAnnotationData<A> ad = new ActionAnnotationData<A>(annotation); ad.value = readStringElement(annotation, "value"); ad.extension = readStringElement(annotation, "extension"); ad.alias = readStringElement(annotation, "alias"); ad.method = readStringElement(annotation, "method"); return ad; }
boolean hasAnnotation = false; for (ActionAnnotation<?> actionAnnotation : madvocConfig.getActionAnnotationInstances()) { if (actionAnnotation.hasAnnotation(method)) { hasAnnotation = true; break;
annotationData = actionAnnotation.readAnnotationData(actionMethod); if (annotationData != null) { break;