|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.enterprise.tools.apt.ServiceAnnotationProcessor
public class ServiceAnnotationProcessor
This class is proccessing the @Service
annotation and generates
META-INF/services style text file for each interface annotated with @Contract
Constructor Summary | |
---|---|
ServiceAnnotationProcessor(com.sun.mirror.apt.AnnotationProcessorEnvironment env)
Creates a new instance of ServiceAnnotationProcessor |
Method Summary | |
---|---|
protected void |
loadExistingMetaInfFiles()
Loads all existing META-INF/services file from our destination directory This is usuful because during incremental builds, not all source files are recompiled, henve we cannot rewrite the META-INF/services file from scratch each time, but append/remove entries from it as necessary. |
void |
process()
Annotation processor entry point, we are using a visitor pattern the visit only the class declaration. |
void |
roundComplete(com.sun.mirror.apt.RoundCompleteEvent e)
Notification of round complete, I use this to actually write the service file content and close the file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ServiceAnnotationProcessor(com.sun.mirror.apt.AnnotationProcessorEnvironment env)
Method Detail |
---|
protected void loadExistingMetaInfFiles()
public void process()
process
in interface com.sun.mirror.apt.AnnotationProcessor
public void roundComplete(com.sun.mirror.apt.RoundCompleteEvent e)
roundComplete
in interface com.sun.mirror.apt.RoundCompleteListener
e
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |