]> source.dussan.org Git - aspectj.git/commitdiff
quick variant of support for pointcutdoctor - is this sufficient?
authoraclement <aclement>
Mon, 3 Dec 2007 20:15:38 +0000 (20:15 +0000)
committeraclement <aclement>
Mon, 3 Dec 2007 20:15:38 +0000 (20:15 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java

index 7fa9b09852cf4f1a6cfc27e2057ec9d4f9fb878a..babaff807c6561cbe2dc06e286e3a878ede1b4e8 100644 (file)
@@ -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 */