aboutsummaryrefslogtreecommitdiffstats
path: root/ajde.core
diff options
context:
space:
mode:
authoraclement <aclement>2008-10-03 02:10:29 +0000
committeraclement <aclement>2008-10-03 02:10:29 +0000
commit9756f892ef86ddf3bc5bbb0cb326fb10736e8ef8 (patch)
treeb75311dfd3e6296f86ec112433d595b23513a97b /ajde.core
parentf761cd7e9ab41e3809cd0fe11eea3beb77515461 (diff)
downloadaspectj-9756f892ef86ddf3bc5bbb0cb326fb10736e8ef8.tar.gz
aspectj-9756f892ef86ddf3bc5bbb0cb326fb10736e8ef8.zip
249551: cleanup by default
Diffstat (limited to 'ajde.core')
-rw-r--r--ajde.core/src/org/aspectj/ajde/core/AjCompiler.java17
-rw-r--r--ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java10
2 files changed, 19 insertions, 8 deletions
diff --git a/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java b/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
index 221f0b58c..758073d83 100644
--- a/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
+++ b/ajde.core/src/org/aspectj/ajde/core/AjCompiler.java
@@ -27,11 +27,11 @@ import org.aspectj.org.eclipse.jdt.internal.compiler.impl.CompilerOptions;
*/
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
@@ -89,6 +89,13 @@ public class AjCompiler {
}
/**
+ * Cleanup the compiler instance, ready for removal.
+ */
+ public void cleanup() {
+ buildManager.cleanup();
+ }
+
+ /**
* Perform a full build.
*/
public void buildFresh() {
diff --git a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
index b4de526f3..c22248f46 100644
--- a/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
+++ b/ajde.core/src/org/aspectj/ajde/core/internal/AjdeCoreBuildManager.java
@@ -45,10 +45,10 @@ import org.aspectj.util.LangUtil;
*/
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;
@@ -390,4 +390,8 @@ public class AjdeCoreBuildManager {
public Object getCustomMungerFactory() {
return ajBuildManager.getCustomMungerFactory();
}
+
+ public void cleanup() {
+ ajBuildManager.cleanup();
+ }
}