aQute.bnd.concurrent
Class MultiBuilder

java.lang.Object
  extended by aQute.bnd.concurrent.MultiBuilder

public class MultiBuilder
extends Object

This class implements a concurrent builder. It manages the build process in an environment where many threads can initiate builds. Users should call changed(Project,boolean)


Constructor Summary
MultiBuilder(Workspace workspace)
          Constructor
 
Method Summary
 File[] build(Project p)
          Return the build result of a project.
 void changed(Project p)
          Indicate that the project has changed.
 void schedule(boolean sync)
          Schedule a new build if no build is running otherwise return.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultiBuilder

public MultiBuilder(Workspace workspace)
Constructor

Parameters:
workspace - the workspace this MultiBuilder works for.
Method Detail

build

public File[] build(Project p)
             throws Exception
Return the build result of a project.

Parameters:
p - the project
Returns:
the files build by the project
Throws:
Exception

changed

public void changed(Project p)
             throws Exception
Indicate that the project has changed. This will start a build.

Parameters:
p - the project that is changed
Throws:
Exception

schedule

public void schedule(boolean sync)
              throws Exception
Schedule a new build if no build is running otherwise return.

Throws:
Exception


Copyright © 2012 aQute SARL. All Rights Reserved.