Skip to main content



      Home
Home » Language IDEs » AspectJ » Avoid executing aspects inside another aspect
Avoid executing aspects inside another aspect [message #1727675] Thu, 24 March 2016 22:07
Eclipse UserFriend
Let's assume the following scenario:

Class A has all its methods with an around advice.

Aspect B advices all Class A methods with around crosspoints.

Aspect C invokes class A, but triggers Aspect B.

I do not want Aspect B to be triggered.

I've tried the following solutions to avoid triggering AspectB with a call from another aspect:

 !call(* aspects..*.*(..))
!execution(* aspects..*.(..))
!within(aspects..*)
!cflow(call(* aspects..*.*(..))


nothing worked >(

Previous Topic:How to resolve method binding in advice declaration
Next Topic:Error Counter Aspect
Goto Forum:
  


Current Time: Wed May 14 01:16:09 EDT 2025

Powered by FUDForum. Page generated in 0.02738 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top