Class CompilationParticipant

java.lang.Object
org.aspectj.org.eclipse.jdt.core.compiler.CompilationParticipant

public abstract class CompilationParticipant extends Object
A compilation participant is notified of events occurring during the compilation process. The compilation process not only involves generating .class files (i.e. building), it also involves cleaning the output directory, reconciling a working copy, etc. So the notified events are the result of a build action, a clean action, a reconcile operation (for a working copy), etc.

Code that participates in the build should in general be implemented with a separate Builder, rather than a CompilationParticipant. It is only necessary to use a CompilationParticipant if the build step needs to interact with the Java build, for instance by creating additional Java source files that must themselves in turn be compiled.

Clients wishing to participate in the compilation process must subclass this class, and implement isActive(IJavaProject), aboutToBuild(IJavaProject), reconcile(ReconcileContext), etc.

If the "requires" attribute is not used for participant definition, there will be no specific order in which potential multiple compilation participants are called. If they have to be called in a specific order, the attribute "requires" can be set on the extension point entries.

This class is intended to be subclassed by clients.

Since:
3.2