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
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
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
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
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
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
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
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
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-
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
--
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
11 matches
Mail list logo