Re: [aspectj-users] Advice on Constructors With Subclasses

2008-09-09 Thread Simone Gianni
Hi James, I think it still has a problem when multiple this constructors are involved. In that case, the advice code would be executed twice (or more times) depending on how many this() calls there are between constructor. In this case the initialization pointcut comes in handy, cause it matches t

Re: [aspectj-users] Advice on Constructors With Subclasses

2008-09-09 Thread Andy Clement
very nice ;) Andy. 2008/9/9 Simone Gianni <[EMAIL PROTECTED]> > What about this : > > public aspect CheckingWithSimplestAspectJEver { > >pointcut constructor(A inst) : execution(A+.new(..)) && this(inst); > >after(A inst) : constructor(inst) { >if (inst.getClass().equals( >

Re: [aspectj-users] Advice on Constructors With Subclasses

2008-09-09 Thread James Elliott
Simone, You are brilliant. This also works with construction via reflection, even within a delegate, and is orders of magnitude faster than your first solution. Thanks so much. =) ___ aspectj-users mailing list aspectj-users@eclipse.org https://dev.ecl

Re: [aspectj-users] Six digests in a single day

2008-09-09 Thread Eric Eide
"Andrew" == Andrew Eisenberg <[EMAIL PROTECTED]> writes: Andrew> I don't know why you are receiving so many digests [...] Mailman will send a digest when the size (KB) of the to-be-sent mail reaches a (configurable) threshold. Rampant overquoting means that the threshhold is reached quic

Re: [aspectj-users] Six digests in a single day

2008-09-09 Thread Andrew Eisenberg
In the future please send administrative requests like this to [EMAIL PROTECTED] I don't know why you are receiving so many digests and I am not the list administrator so I can't help you directly, but instead of daily digests, you can choose to subscribe to the rss feed or choose to not receive a

[aspectj-users] Six digests in a single day

2008-09-09 Thread Miguel Pessoa Monteiro
Dear fellow subscribers to aspectj-users, My account is set to digest mode. If I'm not mistaken, the "digest" below is the sixth I received today. I'm the only one thinking that "digest" should really mean "daily digest"? mpm Em Ter, Setembro 9, 2008 5:01 pm, [EMAIL PROTECTED] escreveu: > Send

Re: [aspectj-users] symmetric vs asymmetric aop

2008-09-09 Thread Eric Bodden
2008/9/9 Dean Wampler <[EMAIL PROTECTED]>: > Symmetric AOP is the idea that aspects are used as commonly as classes in an > app and that aspects have the same "first-class" nature. I would even go so far to say that in truly symmetric AOP there is no notion of a class any more. Everything is an as

Re: [aspectj-users] Advice on Constructors With Subclasses

2008-09-09 Thread Simone Gianni
What about this : public aspect CheckingWithSimplestAspectJEver { pointcut constructor(A inst) : execution(A+.new(..)) && this(inst); after(A inst) : constructor(inst) { if (inst.getClass().equals( thisJoinPointStaticPart.getSourceLocation().getWithinType())) S

Re: [aspectj-users] symmetric vs asymmetric aop

2008-09-09 Thread Dean Wampler
Symmetric AOP is the idea that aspects are used as commonly as classes in an app and that aspects have the same "first-class" nature. In contrast, in Asymmetric AOP, the aspects are used more as "adjuncts" to classes, which are used to modularize most of the code in the app. So, AspectJ is

Re: [aspectj-users] Advice on Constructors With Subclasses

2008-09-09 Thread Simone Gianni
What about this : public aspect CheckingWithSimplestAspectJEver { pointcut constructor(A inst) : execution(A+.new(..)) && this(inst); after(A inst) : constructor(inst) { if (inst.getClass().equals(thisJoinPointStaticPart.getSourceLocation().getWithinType())) System

Re: [aspectj-users] symmetric vs asymmetric aop

2008-09-09 Thread Dean Wampler
A slight clarification. Aspects are still "first-class" in AspectJ... On Sep 9, 2008, at 7:56 AM, Dean Wampler wrote: Symmetric AOP is the idea that aspects are used as commonly as classes in an app and that aspects have the same "first-class" nature. In contrast, in Asymmetric AOP, the aspe

[aspectj-users] symmetric vs asymmetric aop

2008-09-09 Thread Luca Ferrari
Hi all, sorry for this question that is not tied to AspectJ, but yesterday I heard for the first time the term "symmetric aop", but I dind't get the meaning. Anyove can give me info or pointers about? Thanks, Luca ___ aspectj-users mailing list aspectj