From: aclement Date: Mon, 3 Dec 2007 20:15:38 +0000 (+0000) Subject: quick variant of support for pointcutdoctor - is this sufficient? X-Git-Tag: V1_5_4rc1~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=147258ea31cc8b2375b3c5961b875d9d05c4415d;p=aspectj.git quick variant of support for pointcutdoctor - is this sufficient? --- 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 */