]> source.dussan.org Git - aspectj.git/commitdiff
signatures are Object - hideous.
authoraclement <aclement>
Tue, 4 Dec 2007 08:24:52 +0000 (08:24 +0000)
committeraclement <aclement>
Tue, 4 Dec 2007 08:24:52 +0000 (08:24 +0000)
org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java

index babaff807c6561cbe2dc06e286e3a878ede1b4e8..1b73619a3ef9ff046f281666c4e76962057423ea 100644 (file)
@@ -752,16 +752,13 @@ public class AjBuildManager implements IOutputClassFileNameProvider,IBinarySourc
 //    }
     
     //LTODO delegate to BcelWeaver?
-    public void setCustomMungerFactory(Class factoryClass) {
-       try {
-                       customMungerFactory = (CustomMungerFactory)factoryClass.newInstance();
-               } catch (Exception e) {
-                       customMungerFactory = null;
-               }
+     // XXX hideous, should not be Object
+    public void setCustomMungerFactory(Object o) {
+               customMungerFactory = (CustomMungerFactory)o;
     }
      
-       public boolean hasCustomMungerFactory() {
-               return customMungerFactory!=null;
+       public Object getCustomMungerFactory() {
+               return customMungerFactory;
        }
 
     /** init only on initial batch compile? no file-specific options */