Re: [aspectj-users] Re: Dynamically disable a pointcut

2010-07-01 Thread Ramnivas Laddad
The if() pointcut is a evaluated dynamic (i.e. at runtime). That allows runtime control over aspect. The initial value has no influence over weaving. So in this case, AspectJ will weave in the aspect, but at runtime check the variable and not execute the advice. -Ramnivas On Thu, Jul 1, 2010 at 1

[aspectj-users] Re: Dynamically disable a pointcut

2010-07-01 Thread rampaadh
Andy and all, Thanks for your responses. I am attaching a file which contains my Aspect. http://aspectj.2085585.n4.nabble.com/file/n2275617/TraceAspect.aj TraceAspect.aj nitially I am having isTraceEnabled flag as "False". I am controlling the isTraceEnabled flag through a JSP which access

Re: [aspectj-users] Re: Dynamically disable a pointcut

2010-06-30 Thread Andy Clement
What do you mean by 'all methods are getting evaluated' - which methods? If you can supply a complete simple test program showing your concerns, that would be easier to discuss. Andy On 30 June 2010 08:46, rampaadh wrote: > > Ashank, > > But if i disabled the boolean, still all methods got eval

[aspectj-users] Re: Dynamically disable a pointcut

2010-06-30 Thread rampaadh
Ashank, But if i disabled the boolean, still all methods got evaluated. For ex: In the following code, if isTraceEnabled = false, before() and after () did not get called, but still all methods are getting evaluated which is making my app very slow. If I disabled the flag, nothing should be e

[aspectj-users] Re: Dynamically disable a pointcut

2010-06-30 Thread Ashank
Please try again. It works for me. I dynamically changed the boolean value for the 'if' pointcut from true to false and then back to true and the advice got executed accordingly. -- View this message in context: http://aspectj.2085585.n4.nabble.com/Dynamically-disable-a-pointcut-tp2272366p227271

Auto Reply: Re: Auto Reply: [aspectj-users] Re: Dynamically disable a pointcut

2010-06-29 Thread santhosh . thatipally
I am out of office right now. Will be back on 5th July. ___ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: Auto Reply: [aspectj-users] Re: Dynamically disable a pointcut

2010-06-29 Thread Andy Clement
trying to get it sorted now. Sorry to everyone for the spam. Andy On 29 June 2010 08:44, Jim McMaster wrote: > Could an administrator unsubscribe this moron?  I don't care that he is out > of the office. > > Jim McMaster > mailto:jim.mcmas...@gmail.com > > > On Tue, Jun 29, 2010 at 9:32 AM, wr

Auto Reply: Re: Auto Reply: [aspectj-users] Re: Dynamically disable a pointcut

2010-06-29 Thread santhosh . thatipally
I am out of office right now. Will be back on 5th July. ___ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users

Re: Auto Reply: [aspectj-users] Re: Dynamically disable a pointcut

2010-06-29 Thread Jim McMaster
Could an administrator unsubscribe this moron? I don't care that he is out of the office. Jim McMaster mailto:jim.mcmas...@gmail.com On Tue, Jun 29, 2010 at 9:32 AM, wrote: > I am out of office right now. Will be back on 5th July. > > ___ > aspectj-

Auto Reply: [aspectj-users] Re: Dynamically disable a pointcut

2010-06-29 Thread santhosh . thatipally
I am out of office right now. Will be back on 5th July. ___ aspectj-users mailing list aspectj-users@eclipse.org https://dev.eclipse.org/mailman/listinfo/aspectj-users

[aspectj-users] Re: Dynamically disable a pointcut

2010-06-29 Thread rampaadh
-- View this message in context: http://aspectj.2085585.n4.nabble.com/Dynamically-disable-a-pointcut-tp2268621p2272357.html Sent from the AspectJ - users mailing list archive at Nabble.com. ___ aspectj-users mailing list aspectj-users@eclipse.org http