Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[aspectj-users] Advising advice

Is there a way to access the thisJoinPoint of an advice from a second advice?

The following pointcut successfully picks out interesting calls from other advice.


pointcut breachOfContract( boolean condition ):
		call( * require( boolean ))
		&& args( condition );



How can I access the data of the original thisJoinPoint? Something like:

before( boolean condition ): breachOfContract( condition ) {
	System.out.println( thisJoinPoint.getThis().getSourceLocation() );
}




      



Back to the top