Hi !!

Greetings, i was trying to findout  code smells detection in AOP AspectJ
applications and i found one paper on "Code-Smells in AOP". Author address
code smells like., Hashes, Synchronizations, generous decorations and
bottlenecks are code smells introduction because of AOP AspectJ.
I want to  know  from you and your thought /idea on this code smells
particularly AOP AspectJ Design Patterns.

Thanking You,

Regards

S Kotrappa

On Sun, Dec 11, 2011 at 10:30 PM, <[email protected]> wrote:

> Send aspectj-users mailing list submissions to
>        [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>        https://dev.eclipse.org/mailman/listinfo/aspectj-users
> or, via email, send a message with subject or body 'help' to
>        [email protected]
>
> You can reach the person managing the list at
>        [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of aspectj-users digest..."
>
>
> Today's Topics:
>
>   1. How to deduce the method owning the catch statement referred
>      by the handler join point? (Mark)
>   2. Why would one ever want to use Load Time Weaving? (Mark)
>   3. Re: How to deduce the method owning the catch statement
>      referred by the handler join point? (Andy Clement)
>   4. Re: How to deduce the method owning the catch statement
>      referred by the handler join point? (Mark)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 10 Dec 2011 11:42:39 -0800 (PST)
> From: Mark <[email protected]>
> To: [email protected]
> Subject: [aspectj-users] How to deduce the method owning the catch
>        statement referred by the handler join point?
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> I have the following advice code:
> =========================================================
>  pointcut caughtException(Exception e) : handler(Exception+) && args(e);
>  before (Exception e) : caughtException(e) && loggedScope() &&
> loggedMethodScope() {
>    logCaughtException(getLogger(thisJoinPointStaticPart), thisJoinPoint,
> e);
>  }
> =========================================================
>
> My wish is that the logCaughtException method output the name and the
> parameters of the method owning the adviced catch statement. However,
> thisJoinPoint.getSignature() returns a CatchClauseSignature instance, from
> which it is unclear to me how to extract the signature of the owning
> method.
>
> How can I do it?
>
> Thanks.
>
> --
> View this message in context:
> http://aspectj.2085585.n4.nabble.com/How-to-deduce-the-method-owning-the-catch-statement-referred-by-the-handler-join-point-tp4181004p4181004.html
> Sent from the AspectJ - users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 10 Dec 2011 14:25:13 -0800 (PST)
> From: Mark <[email protected]>
> To: [email protected]
> Subject: [aspectj-users] Why would one ever want to use Load Time
>        Weaving?
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> The title says it all.
> Thanks.
>
> --
> View this message in context:
> http://aspectj.2085585.n4.nabble.com/Why-would-one-ever-want-to-use-Load-Time-Weaving-tp4181328p4181328.html
> Sent from the AspectJ - users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> Message: 3
> Date: Sat, 10 Dec 2011 14:57:55 -0800
> From: Andy Clement <[email protected]>
> To: [email protected]
> Subject: Re: [aspectj-users] How to deduce the method owning the catch
>        statement referred by the handler join point?
> Message-ID:
>        <CAAu=nomt-ekpounls0q2j7n8ztth0dh8vstgvc6wyc0x8cl...@mail.gmail.com
> >
> Content-Type: text/plain; charset=ISO-8859-1
>
> You need to use thisEnclosingJoinPointStaticPart - another 'well
> known' name like thisJoinPoint that will give you access to the
> joinpoint enclosing your handler join point (i.e. the method
> containing the catch block).
>
> cheers,
> Andy
>
> On 10 December 2011 11:42, Mark <[email protected]> wrote:
> > I have the following advice code:
> > =========================================================
> > ?pointcut caughtException(Exception e) : handler(Exception+) && args(e);
> > ?before (Exception e) : caughtException(e) && loggedScope() &&
> > loggedMethodScope() {
> > ? ?logCaughtException(getLogger(thisJoinPointStaticPart), thisJoinPoint,
> > e);
> > ?}
> > =========================================================
> >
> > My wish is that the logCaughtException method output the name and the
> > parameters of the method owning the adviced catch statement. However,
> > thisJoinPoint.getSignature() returns a CatchClauseSignature instance,
> from
> > which it is unclear to me how to extract the signature of the owning
> method.
> >
> > How can I do it?
> >
> > Thanks.
> >
> > --
> > View this message in context:
> http://aspectj.2085585.n4.nabble.com/How-to-deduce-the-method-owning-the-catch-statement-referred-by-the-handler-join-point-tp4181004p4181004.html
> > Sent from the AspectJ - users mailing list archive at Nabble.com.
> > _______________________________________________
> > aspectj-users mailing list
> > [email protected]
> > https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
> ------------------------------
>
> Message: 4
> Date: Sun, 11 Dec 2011 01:35:23 -0800 (PST)
> From: Mark <[email protected]>
> To: [email protected]
> Subject: Re: [aspectj-users] How to deduce the method owning the catch
>        statement referred by the handler join point?
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> Which means I cannot get the arguments of the method, since the enclosing
> part is static, can I?
>
>
> --
> View this message in context:
> http://aspectj.2085585.n4.nabble.com/How-to-deduce-the-method-owning-the-catch-statement-referred-by-the-handler-join-point-tp4181004p4182370.html
> Sent from the AspectJ - users mailing list archive at Nabble.com.
>
>
> ------------------------------
>
> _______________________________________________
> aspectj-users mailing list
> [email protected]
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
>
>
> End of aspectj-users Digest, Vol 82, Issue 11
> *********************************************
>
_______________________________________________
aspectj-users mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/aspectj-users

Reply via email to