*/
public class AjCompiler {
- private String compilerId;
- private ICompilerConfiguration compilerConfig;
- private IBuildProgressMonitor monitor;
- private IBuildMessageHandler handler;
- private AjdeCoreBuildManager buildManager;
+ private final String compilerId;
+ private final ICompilerConfiguration compilerConfig;
+ private final IBuildProgressMonitor monitor;
+ private final IBuildMessageHandler handler;
+ private final AjdeCoreBuildManager buildManager;
/**
* Creates a new AjCompiler for the given id, ICompilerConfiguration, IBuildProgressMonitor and IBuildMessageHandler. None of
}
}
+ /**
+ * Cleanup the compiler instance, ready for removal.
+ */
+ public void cleanup() {
+ buildManager.cleanup();
+ }
+
/**
* Perform a full build.
*/
*/
public class AjdeCoreBuildManager {
- private AjCompiler compiler;
+ private final AjCompiler compiler;
private AjdeCoreBuildNotifierAdapter buildEventNotifier = null;
- private AjBuildManager ajBuildManager;
- private IMessageHandler msgHandlerAdapter;
+ private final AjBuildManager ajBuildManager;
+ private final IMessageHandler msgHandlerAdapter;
public AjdeCoreBuildManager(AjCompiler compiler) {
this.compiler = compiler;
public Object getCustomMungerFactory() {
return ajBuildManager.getCustomMungerFactory();
}
+
+ public void cleanup() {
+ ajBuildManager.cleanup();
+ }
}