protected Map generatedClasses = new HashMap(); /* String -> UnwovenClassFile */
protected WeavingAdaptor () {
- createMessageHandler();
}
registerAspectLibraries(aspectPath);
}
- private void createMessageHandler() {
+ protected void createMessageHandler() {
messageHolder = new WeavingAdaptorMessageHandler(new PrintWriter(System.err));
messageHandler = messageHolder;
if (verbose) messageHandler.dontIgnore(IMessage.INFO);
protected boolean error (String message) {
return MessageUtil.error(messageHandler,message);
}
+
+ protected String getContextId () {
+ return "WeavingAdaptor";
+ }
/**
* Dump the given bytcode in _dump/... (dev mode)
accumulating = false;
messages.clear();
}
+
+ protected String render(IMessage message) {
+ return "[" + getContextId() + "] " + super.render(message);
+ }
}
private class WeavingClassFileProvider implements IClassFileProvider {