Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AspectJ » Avoid executing aspects inside another aspect
Avoid executing aspects inside another aspect [message #1727675] Fri, 25 March 2016 02:07
Humberto Carvalho is currently offline Humberto CarvalhoFriend
Messages: 6
Registered: September 2013
Junior Member
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: Sun Apr 28 18:15:27 GMT 2024

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

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

Back to the top