Advising advice

View: New views
1 Messages — Rating Filter:   Alert me  

Advising advice

by Sago Djuret :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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() );
}



     

_______________________________________________
aspectj-users mailing list
aspectj-users@...
https://dev.eclipse.org/mailman/listinfo/aspectj-users
LightInTheBox - Buy quality products at wholesale price!