Class DialogProviderAnnotationProcessor

java.lang.Object
javax.annotation.processing.AbstractProcessor
com.adobe.acs.commons.mcp.form.DialogProviderAnnotationProcessor
All Implemented Interfaces:
Processor

public class DialogProviderAnnotationProcessor extends AbstractProcessor
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: