Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

javax.ide.build
Class BuildSystem  view BuildSystem download BuildSystem.java

java.lang.Object
  extended byjavax.ide.Service
      extended byjavax.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.


Field Summary
private  java.util.List _listeners
           
 
Fields inherited from class javax.ide.Service
 
Constructor Summary
protected BuildSystem()
           
 
Method Summary
 void addBuildListener(BuildListener l)
          Add an BuildListener.
abstract  void build(javax.ide.command.Context context)
          Start a build of the objects selected in the javax.ide.command.Context.
protected  void firePostBuild(BuildEvent event)
          Notifies listeners that the compiler has finished compiling documents.
protected  void firePreBuild(BuildEvent event)
          Notifies listeners that the compiler is about to start building.
static BuildSystem getBuildSystem()
          Gets the build system implementation.
protected  void initialize()
          Initializes the build system manager.
abstract  boolean isBuilding()
          Check if the build system is currently building something.
 void removeBuildListener(BuildListener l)
          Remove an BuildListener.
 
Methods inherited from class javax.ide.Service
getService
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_listeners

private final java.util.List _listeners
Constructor Detail

BuildSystem

protected BuildSystem()
Method Detail

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.