summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2007-12-03 20:15:38 +0000
committeraclement <aclement>2007-12-03 20:15:38 +0000
commit147258ea31cc8b2375b3c5961b875d9d05c4415d (patch)
treece5f5c1bd64d6952a5cf99c969fd083c6d089d95 /org.aspectj.ajdt.core
parent97ab352ee79577d8a743134d8e53e6b69f6734ef (diff)
downloadaspectj-147258ea31cc8b2375b3c5961b875d9d05c4415d.tar.gz
aspectj-147258ea31cc8b2375b3c5961b875d9d05c4415d.zip
quick variant of support for pointcutdoctor - is this sufficient?
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java12
1 files changed, 8 insertions, 4 deletions
diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java
index 7fa9b0985..babaff807 100644
--- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java
+++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java
@@ -752,12 +752,16 @@ public class AjBuildManager implements IOutputClassFileNameProvider,IBinarySourc
// }
//LTODO delegate to BcelWeaver?
- public void setCustomMungerFactory(CustomMungerFactory factory) {
- customMungerFactory = factory;
+ public void setCustomMungerFactory(Class factoryClass) {
+ try {
+ customMungerFactory = (CustomMungerFactory)factoryClass.newInstance();
+ } catch (Exception e) {
+ customMungerFactory = null;
+ }
}
- public CustomMungerFactory getCustomMungerFactory() {
- return customMungerFactory;
+ public boolean hasCustomMungerFactory() {
+ return customMungerFactory!=null;
}
/** init only on initial batch compile? no file-specific options */