Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] question on ajlib:

With regards to ajlib:
http://fisheye.codehaus.org/browse/ajlib-incubator/org.codehaus.ajlib

There is a class Log4jExecutionTracing not covered in the unit tests and for which there are no examples of its usage. It uses a class called "Traced" that I don't see anywhere and I *think* that is at the core of my not comprehending how to use this class.

Basically if I have a test tracing aspect like this it works great (DummyObject is the class whose methods are to be traced):

package com.AjlibTest;
import org.codehaus.ajlib.util.tracing.ExecutionTracing;
public aspect TestTraceAspect extends ExecutionTracing
{
public pointcut scope() : within(DummyObject);
before(): scope()
{
System.out.println("Tracing");
}
}

But if I change ExecutionTracing to Log4jExecutionTracing it doesn't weave anything (advice defined in com.AjlibTest.TestTraceAspect has not been applied [Xlint:adviceDidNotMatch]).

much appreciated,
Owen



Back to the top