|
|
Re: how to compare pointcuts [message #65170 is a reply to message #65148] |
Tue, 23 May 2006 16:48 |
Jimisola Laursen Messages: 134 Registered: July 2009 |
Senior Member |
|
|
Hi!
Thanks for the reply.
Well, cross references view worked like that I expected then.
However, even if it is more useful to show the matches (or potential
matches) against the advice rather than the pointcut I don't see why one
shouldn't be able to compare pointcuts if it is doable since it saves me as
a developer time. It's not mutual exclusive,so why don't have the best of
both worlds?
Regards,
Jimisola
"Matt Chapman" <mpchapman@gmail.com> wrote in message
news:e4vdkl$u2j$1@utils.eclipse.org...
> Jimisola Laursen wrote:
>> Hi!
>>
>> Wondering if there is a way to compare to different pointcuts using
>> AJDT.
>> I am not looking for a graphical compare such as the crosscutting
>> comparison,
>> rather a compare such as the cross reference comparison.
>>
>> Since I am a AspectJ/AJDT newbie what am I asking for might already exist
>> in AJDT but I can't find it.
>>
>> If it does not exist, is it because it is not possible? Is an advice
>> needed perhaps?
>
> Hi Jimisola,
>
> Yes, simply write some empty advice using the pointcut, and then you can
> use the cross references view to see the matches.
>
> A pointcut doesn't do anything on its own, advice is needed to have an
> effect, so therefore it is more useful to show the matches (or potential
> matches in the case of runtime tests) against the advice rather than the
> pointcuts.
>
> Regards,
>
> Matt.
|
|
|
|
|
|
Re: how to compare pointcuts [message #593816 is a reply to message #65148] |
Tue, 23 May 2006 16:48 |
Jimisola Laursen Messages: 134 Registered: July 2009 |
Senior Member |
|
|
Hi!
Thanks for the reply.
Well, cross references view worked like that I expected then.
However, even if it is more useful to show the matches (or potential
matches) against the advice rather than the pointcut I don't see why one
shouldn't be able to compare pointcuts if it is doable since it saves me as
a developer time. It's not mutual exclusive,so why don't have the best of
both worlds?
Regards,
Jimisola
"Matt Chapman" <mpchapman@gmail.com> wrote in message
news:e4vdkl$u2j$1@utils.eclipse.org...
> Jimisola Laursen wrote:
>> Hi!
>>
>> Wondering if there is a way to compare to different pointcuts using
>> AJDT.
>> I am not looking for a graphical compare such as the crosscutting
>> comparison,
>> rather a compare such as the cross reference comparison.
>>
>> Since I am a AspectJ/AJDT newbie what am I asking for might already exist
>> in AJDT but I can't find it.
>>
>> If it does not exist, is it because it is not possible? Is an advice
>> needed perhaps?
>
> Hi Jimisola,
>
> Yes, simply write some empty advice using the pointcut, and then you can
> use the cross references view to see the matches.
>
> A pointcut doesn't do anything on its own, advice is needed to have an
> effect, so therefore it is more useful to show the matches (or potential
> matches in the case of runtime tests) against the advice rather than the
> pointcuts.
>
> Regards,
>
> Matt.
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04181 seconds