com.sun.enterprise.tools.apt
Class InhabitantsGenerator
java.lang.Object
com.sun.enterprise.tools.apt.InhabitantsGenerator
- All Implemented Interfaces:
- com.sun.mirror.apt.AnnotationProcessor, com.sun.mirror.apt.AnnotationProcessorListener, com.sun.mirror.apt.RoundCompleteListener, EventListener
public class InhabitantsGenerator
- extends Object
- implements com.sun.mirror.apt.AnnotationProcessor, com.sun.mirror.apt.RoundCompleteListener
Generates /META-INF/inhabitants/*
- Author:
- Kohsuke Kawaguchi
Constructor Summary |
InhabitantsGenerator(com.sun.mirror.apt.AnnotationProcessorEnvironment env,
com.sun.enterprise.tools.apt.DescriptorList list)
|
Method Summary |
void |
process()
|
void |
roundComplete(com.sun.mirror.apt.RoundCompleteEvent event)
Defer the output till the very end, because otherwise we'll end up writing
files multiple times, which APT doesn't like. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InhabitantsGenerator
public InhabitantsGenerator(com.sun.mirror.apt.AnnotationProcessorEnvironment env,
com.sun.enterprise.tools.apt.DescriptorList list)
process
public void process()
- Specified by:
process
in interface com.sun.mirror.apt.AnnotationProcessor
roundComplete
public void roundComplete(com.sun.mirror.apt.RoundCompleteEvent event)
- Defer the output till the very end, because otherwise we'll end up writing
files multiple times, which APT doesn't like.
But APT also doesn't like us creating files after the rounds are completed,
so we need a hack to figure out where the output directory is, and use that.
- Specified by:
roundComplete
in interface com.sun.mirror.apt.RoundCompleteListener
Copyright © 2013 Oracle Corporation. All Rights Reserved.