java.lang.Object
javax.ide.Service
javax.ide.build.BuildSystem
- public abstract class BuildSystem
- extends javax.ide.Service
The BuildSystem service allows extension writers to
initiate a build and query information from the build system.
| Fields inherited from class javax.ide.Service |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_listeners
private final java.util.List _listeners
BuildSystem
protected BuildSystem()
initialize
protected void initialize()
- Initializes the build system manager.
This implementation retrieves and registers listeners obtained from
the build system hook handler.
addBuildListener
public final void addBuildListener(BuildListener l)
- Add an BuildListener.
removeBuildListener
public final void removeBuildListener(BuildListener l)
- Remove an BuildListener.
build
public abstract void build(javax.ide.command.Context context)
- Start a build of the objects selected in the javax.ide.command.Context. This
method starts the build in another thread and returns immediately.
isBuilding
public abstract boolean isBuilding()
- Check if the build system is currently building something.
firePreBuild
protected final void firePreBuild(BuildEvent event)
throws AbortBuildException
- Notifies listeners that the compiler is about to start building. This
method fires the
BuildListener.preBuild(javax.ide.build.BuildEvent) 55 method. If any
of the registered listeners preBuild method throws
an exception during its execution, the BuildListener.postBuild(javax.ide.build.BuildEvent) 55
method is called on all listeners whose preBuild method
succeeded. This gives those listeners a chance to clean up.
firePostBuild
protected final void firePostBuild(BuildEvent event)
- Notifies listeners that the compiler has finished compiling documents.
getBuildSystem
public static BuildSystem getBuildSystem()
- Gets the build system implementation.