From 147258ea31cc8b2375b3c5961b875d9d05c4415d Mon Sep 17 00:00:00 2001 From: aclement Date: Mon, 3 Dec 2007 20:15:38 +0000 Subject: [PATCH] quick variant of support for pointcutdoctor - is this sufficient? --- .../ajdt/internal/core/builder/AjBuildManager.java | 12 ++++++++---- 1 file 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 */ -- 2.39.5