Package com.adobe.acs.commons.mcp.form
Class DialogProviderAnnotationProcessor
java.lang.Object
javax.annotation.processing.AbstractProcessor
com.adobe.acs.commons.mcp.form.DialogProviderAnnotationProcessor
- All Implemented Interfaces:
Processor
Processes the DialogProvider annotation, producing a corresponding OSGi
service to provide the generated sling dialog resources. This annotation
processor will skip any classes which do not identify their corresponding
sling model either as part of the model annotation or by a property or getter
method.
This annotation processor needs to be registered explicitly via the processor option of javac in order to prevent it from being automatically active whenever this bundle is on the classpath. For usage with Maven this can be achieved with the following code:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<annotationProcessors>
<annotationProcessor>com.adobe.acs.commons.mcp.form.DialogProviderAnnotationProcessor</annotationProcessor>
</annotatinoProcessors>
</configuration>
</plugin>
- See Also:
-
Field Summary
Fields inherited from class javax.annotation.processing.AbstractProcessor
processingEnv -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanprocess(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) Methods inherited from class javax.annotation.processing.AbstractProcessor
getCompletions, getSupportedOptions, init, isInitialized
-
Constructor Details
-
DialogProviderAnnotationProcessor
public DialogProviderAnnotationProcessor()
-
-
Method Details
-
process
- Specified by:
processin interfaceProcessor- Specified by:
processin classAbstractProcessor
-
getSupportedAnnotationTypes
- Specified by:
getSupportedAnnotationTypesin interfaceProcessor- Overrides:
getSupportedAnnotationTypesin classAbstractProcessor
-
getSupportedSourceVersion
- Specified by:
getSupportedSourceVersionin interfaceProcessor- Overrides:
getSupportedSourceVersionin classAbstractProcessor
-