# Annotation Processor Factories

###### Identifier:

org.eclipse.jdt.apt.core.annotationProcessorFactory

###### Since:

3.2

###### Description:

Plug-ins which contribute JSR-175 annotation processors should extend this extension point in order to participate in compilation.

###### Configuration Markup:

<!ELEMENT extension (factories? , java6processors?)>

<!ATTLIST extension

point CDATA #REQUIRED

id CDATA #IMPLIED

name CDATA #IMPLIED>

<!ELEMENT factories (factory*)>

<!ATTLIST factories

enableDefault (true | false) >

- enableDefault - true if this processor should be enabled by default. This value may be overridden via the annotation processing configuration settings. If not present this value defaults to true.

<!ELEMENT factory EMPTY>

<!ATTLIST factory

class CDATA #REQUIRED

implements CDATA #IMPLIED>

- class - Qualified name of a class that implements com.sun.mirror.apt.AnnotationProcessorFactory and has a no-argument constructor.
- Deprecated implements - Reserved. Do not use this attribute.

<!ELEMENT java6processors (java6processor*)>

<!ATTLIST java6processors

enableDefault (true | false) >

- enableDefault - true if this processor should be enabled by default. This value may be overridden via the annotation processing configuration settings. If not present this value defaults to true.

<!ELEMENT java6processor EMPTY>

<!ATTLIST java6processor

class CDATA #REQUIRED>

- class - Qualified name of a class that implements javax.annotation.processing.Processor and has a no-argument constructor.

###### Examples:

Example of a declaration of an `annotationProcessorFactory`:

         <extension
             point="org.eclipse.jdt.apt.core.annotationProcessorFactory">
          <factories enableDefault="true">
           <factory
              class="org.xyz.HelloWorldAnnotationProcessorFactory">
           </factory>
           <factory
              class="org.xyz.GoodNightMoonAnnotationProcessorFactory">
           </factory>
        </factories>
       </extension>

###### API Information:

Annotation processors must implement com.sun.mirror.apt.AnnotationProcessorFactory, or a subclass thereof.

Copyright (c) 2005 BEA Systems, Inc and others.
This program and the accompanying materials are made available under the terms of the Eclipse Public License 2.0 which accompanies this distribution, and is available at https://www.eclipse.org/legal/epl-v20.html/ SPDX-License-Identifier: EPL-2.0