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)

>


<!ELEMENT factory EMPTY>

<!ATTLIST factory

class      CDATA #REQUIRED

implements CDATA #IMPLIED

>


<!ELEMENT java6processors (java6processor*)>

<!ATTLIST java6processors

enableDefault (true | false)

>


<!ELEMENT java6processor EMPTY>

<!ATTLIST java6processor

class CDATA #REQUIRED

>


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.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html