* @throws Throwable
*/
protected void dump(String name, byte[] b, boolean before) {
- String dirName = "_ajdump";
+ String dirName = getDumpDir();
+
if (before) dirName = dirName + File.separator + "_before";
String className = name.replace('.', '/');
warn("unable to dump class " + name + " in directory " + dirName,ex);
}
}
+
+ /**
+ * @return the directory in which to dump - default is _ajdump but it
+ */
+ protected String getDumpDir() {
+ return "_ajdump";
+ }
/**
* Processes messages arising from weaver operations.