Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

EclipseJDT Plug-in Developer Guide
Previous Page Home Next Page

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>


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 https://www.eclipse.org/legal/epl-v10.html


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire