Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » AJDT » 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: Thu Dec 14 10:23:00 GMT 2017

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

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