Doh!!! Really sorry about that Bora. I'll try again
Thanks Bora, That worked perfectly :-) Regards Paul >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Bora Erbas >Sent: 08 June 2007 11:20 >To: [email protected] >Subject: Re: [aspectj-users] PointCut > >Who is Brian :) > >On 6/8/07, Paul Bergin <[EMAIL PROTECTED]> wrote: >> Thanks Brian, >> That worked perfectly :-) >> >> >> >-----Original Message----- >> >From: [EMAIL PROTECTED] >> >[mailto:[EMAIL PROTECTED] On Behalf Of Bora Erbas >> >Sent: 08 June 2007 10:38 >> >To: [email protected] >> >Subject: Re: [aspectj-users] PointCut >> > >> >Use pcd: if(booleanCheck()) like: >> > >> > call(public String >> > MyObject.methodOne(String,String,String) >> > && args(val1, >> > val2, >> > val3) >> > && if (booleanCheck()); >> > >> >On 6/8/07, Paul Bergin <[EMAIL PROTECTED]> wrote: >> >> Hi >> >> I have a method (booleanCheck) which returns a boolean value, if >> >> the value returns true I want the aspect to run. Here is my >> >> pointcut definition >> >> >> >> public pointcut methodOne(String val1,String >> >val2,String val3) : >> >> >> >> call(public String >> >> MyObject.methodOne(String,String,String) >> >> && args(val1, >> >> val2, >> >> val3) >> >> && call (boolean booleanCheck()); >> >> >> >> If I remove the final call to booleanCheck the aspect fires >> >correctly, >> >> but when I add the check and it doesn't fire if it >returns true of >> >> false. >> >> What am I doing wrong? >> >> >> >> Cheers >> >> P >> >> _______________________________________________ >> >> aspectj-users mailing list >> >> [email protected] >> >> https://dev.eclipse.org/mailman/listinfo/aspectj-users >> >> >> >_______________________________________________ >> >aspectj-users mailing list >> >[email protected] >> >https://dev.eclipse.org/mailman/listinfo/aspectj-users >> > >> _______________________________________________ >> aspectj-users mailing list >> [email protected] >> https://dev.eclipse.org/mailman/listinfo/aspectj-users >> >_______________________________________________ >aspectj-users mailing list >[email protected] >https://dev.eclipse.org/mailman/listinfo/aspectj-users > _______________________________________________ aspectj-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/aspectj-users
