return bytes;
}
- if (trace.isTraceEnabled()) trace.enter("preProcess",this,new Object[] {className, bytes, loader, Thread.currentThread().getContextClassLoader()});
+ if (trace.isTraceEnabled()) trace.enter("preProcess",this,new Object[] {className, bytes, loader});
+ if (trace.isTraceEnabled()) trace.event("preProcess",this,new Object[] {loader.getParent(), Thread.currentThread().getContextClassLoader()});
try {
synchronized (loader) {
import org.aspectj.weaver.patterns.PerClause;
import org.aspectj.weaver.patterns.Pointcut;
import org.aspectj.weaver.patterns.SimpleScope;
+import org.aspectj.weaver.tools.Trace;
+import org.aspectj.weaver.tools.TraceFactory;
public class BcelWorld extends World implements Repository {
private ClassPathManager classPath;
//private ClassPathManager aspectPath = null;
// private List aspectPathEntries;
+
+ private static Trace trace = TraceFactory.getTraceFactory().getTrace(BcelWorld.class);
// ---- constructors
private JavaClass lookupJavaClass(ClassPathManager classPath, String name) {
if (classPath == null) {
try {
- return delegate.loadClass(name);
+ JavaClass jc = delegate.loadClass(name);
+ if (trace.isTraceEnabled()) trace.event("lookupJavaClass",this,new Object[] { name, jc });
+ return jc;
} catch (ClassNotFoundException e) {
return null;
}