Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [aspectj-users] Figuring out which classes actually match which pointcuts

Hi Andy -

Were you able to find out if this logging is available when using Spring AOP, or if there's anything that would give us similar information?

Thanks.
- Anthony



From: Andy Clement <andrew.clement@xxxxxxxxx>
To: Anthony Tang <aant00@xxxxxxxxx>
Cc: aspectj-users@xxxxxxxxxxx
Sent: Mon, March 14, 2011 11:29:49 AM
Subject: Re: [aspectj-users] Figuring out which classes actually match which pointcuts

I might have replied too quickly...  I was thinking you were ltw with
Spring and AspectJ, but if you are just using spring AOP. I'm not sure
showWeaveInfo will work for you as it only comes out when the weave
occurs, not when a match occurs and Spring AOP is just matching.  I'll
find out...

Andy

On 14 March 2011 11:11, Anthony Tang <aant00@xxxxxxxxx> wrote:
> Thanks for the quick reply.  I'm still struggling with how to add these
> configurations when we're using spring (and thus do not have an aop.xml
> file).  Any ideas?
>
> Thanks.
> - Anthony
>
> ________________________________
> From: Andy Clement <andrew.clement@xxxxxxxxx>
> To: aspectj-users@xxxxxxxxxxx
> Cc: Anthony Tang <aant00@xxxxxxxxx>
> Sent: Mon, March 14, 2011 10:34:01 AM
> Subject: Re: [aspectj-users] Figuring out which classes actually match which
> pointcuts
>
> You can turn on the weaveinfo messages with -showWeaveInfo (in the
> aop.xml).  Capturing those when run in the two ways, you should be
> able to simply diff them.
>
> Andy
>
> On 14 March 2011 10:02, Anthony Tang <aant00@xxxxxxxxx> wrote:
>> Hi -
>>
>> We're using aspectj 1.6.9 configured within spring running on jboss 4.3.
>> We've updated several pointcut expressions to add the within clause and
>> try
>> to optimize memory usage, but wanted to make sure we're still matching all
>> the classes we did before.  Is there a quick and easy way of ensuring
>> this?
>> (i.e. is there any logging available or other tools that can print out all
>> the matches with the previous expressions vs. the new ones?)
>>
>> Thanks.
>> - Anthony
>>
>> _______________________________________________
>> aspectj-users mailing list
>> aspectj-users@xxxxxxxxxxx
>> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>>
>>
>

Back to the top