org.kohsuke.stapler.AnnotationProcessorFactoryImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of maven-stapler-plugin Show documentation
Show all versions of maven-stapler-plugin Show documentation
Maven2 plugin for developing stapler applications
package org.kohsuke.stapler;
import com.sun.mirror.apt.AnnotationProcessor;
import com.sun.mirror.apt.AnnotationProcessorEnvironment;
import com.sun.mirror.apt.AnnotationProcessorFactory;
import com.sun.mirror.apt.AnnotationProcessors;
import com.sun.mirror.declaration.AnnotationTypeDeclaration;
import java.util.Collection;
import java.util.Collections;
import java.util.Set;
/**
* @author Kohsuke Kawaguchi
*/
public final class AnnotationProcessorFactoryImpl implements AnnotationProcessorFactory {
public Collection supportedOptions() {
return Collections.emptyList();
}
public Collection supportedAnnotationTypes() {
return Collections.singleton("*");
}
public AnnotationProcessor getProcessorFor(Set set, AnnotationProcessorEnvironment env) {
return AnnotationProcessors.getCompositeAnnotationProcessor(
new ExportedBeanAnnotationProcessor(env),
new ConstructorProcessor(env),
new QueryParameterAnnotationProcessor(env)
);
}
}