Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [aspectj-users] aspect not working for classes in different package

Try this:


public aspect TracingTest {
	pointcut myclass(): within(com.foo.b.Test);
	pointcut methods(): myclass() && execution(* *(..));

	before(): methods() {
		System.out.println(thisJoinPoint.getSignature().getName() + "");
	}

}


Thanks a lot!



_________________________________________________________________
Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail



Back to the top