[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
RE: [aspectj-users] PointCut
|
Doh!!!
Really sorry about that Bora.
I'll try again
Thanks Bora,
That worked perfectly :-)
Regards
Paul
>-----Original Message-----
>From: aspectj-users-bounces@xxxxxxxxxxx
>[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Bora Erbas
>Sent: 08 June 2007 11:20
>To: aspectj-users@xxxxxxxxxxx
>Subject: Re: [aspectj-users] PointCut
>
>Who is Brian :)
>
>On 6/8/07, Paul Bergin <Paul.Bergin@xxxxxx> wrote:
>> Thanks Brian,
>> That worked perfectly :-)
>>
>>
>> >-----Original Message-----
>> >From: aspectj-users-bounces@xxxxxxxxxxx
>> >[mailto:aspectj-users-bounces@xxxxxxxxxxx] On Behalf Of Bora Erbas
>> >Sent: 08 June 2007 10:38
>> >To: aspectj-users@xxxxxxxxxxx
>> >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 <Paul.Bergin@xxxxxx> 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
>> >> aspectj-users@xxxxxxxxxxx
>> >> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>> >>
>> >_______________________________________________
>> >aspectj-users mailing list
>> >aspectj-users@xxxxxxxxxxx
>> >https://dev.eclipse.org/mailman/listinfo/aspectj-users
>> >
>> _______________________________________________
>> aspectj-users mailing list
>> aspectj-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
>_______________________________________________
>aspectj-users mailing list
>aspectj-users@xxxxxxxxxxx
>https://dev.eclipse.org/mailman/listinfo/aspectj-users
>