diff options
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/core/builder/AjBuildManager.java | 12 |
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 */ |