aboutsummaryrefslogtreecommitdiffstats
path: root/weaver
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-11 13:51:57 +0000
committeraclement <aclement>2005-11-11 13:51:57 +0000
commit3226d27a82e968da0f04e6b4fb5a29a03fbdb0f5 (patch)
tree4cf014693721667e4d77cfbfb8338b8042273003 /weaver
parent7218c96f13f61055bf2952778fc0b44848e43663 (diff)
downloadaspectj-3226d27a82e968da0f04e6b4fb5a29a03fbdb0f5.tar.gz
aspectj-3226d27a82e968da0f04e6b4fb5a29a03fbdb0f5.zip
Matthews patches from 95529
Diffstat (limited to 'weaver')
-rw-r--r--weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java22
1 files changed, 16 insertions, 6 deletions
diff --git a/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java b/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
index 1019ca617..b59ec5564 100644
--- a/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
+++ b/weaver/src/org/aspectj/weaver/tools/WeavingAdaptor.java
@@ -72,6 +72,11 @@ public class WeavingAdaptor {
protected GeneratedClassHandler generatedClassHandler;
protected Map generatedClasses = new HashMap(); /* String -> UnwovenClassFile */
+ protected WeavingAdaptor () {
+ createMessageHandler();
+ }
+
+
/**
* Construct a WeavingAdaptor with a reference to a weaving class loader. The
* adaptor will automatically search the class loader hierarchy to resolve
@@ -135,9 +140,7 @@ public class WeavingAdaptor {
}
private void init(List classPath, List aspectPath) {
- messageHandler = new WeavingAdaptorMessageHandler(new PrintWriter(System.err));
- if (verbose) messageHandler.dontIgnore(IMessage.INFO);
- if (Boolean.getBoolean(SHOW_WEAVE_INFO_PROPERTY)) messageHandler.dontIgnore(IMessage.WEAVEINFO);
+ createMessageHandler();
info("using classpath: " + classPath);
info("using aspectpath: " + aspectPath);
@@ -152,6 +155,13 @@ public class WeavingAdaptor {
weaver = new BcelWeaver(bcelWorld);
registerAspectLibraries(aspectPath);
}
+
+
+ private void createMessageHandler() {
+ messageHandler = new WeavingAdaptorMessageHandler(new PrintWriter(System.err));
+ if (verbose) messageHandler.dontIgnore(IMessage.INFO);
+ if (Boolean.getBoolean(SHOW_WEAVE_INFO_PROPERTY)) messageHandler.dontIgnore(IMessage.WEAVEINFO);
+ }
/**
* Appends URL to path used by the WeavingAdptor to resolve classes
@@ -309,15 +319,15 @@ public class WeavingAdaptor {
return ret;
}
- private boolean info (String message) {
+ protected boolean info (String message) {
return MessageUtil.info(messageHandler,message);
}
- private boolean warn (String message) {
+ protected boolean warn (String message) {
return MessageUtil.warn(messageHandler,message);
}
- private boolean error (String message) {
+ protected boolean error (String message) {
return MessageUtil.error(messageHandler,message);
}