[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[aspectj-users] Code Smells in AOP
|
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,
<aspectj-users-request@xxxxxxxxxxx> wrote:
Send aspectj-users mailing list submissions to
aspectj-users@xxxxxxxxxxx
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
aspectj-users-request@xxxxxxxxxxx
You can reach the person managing the list at
aspectj-users-owner@xxxxxxxxxxx
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 <mark.kharitonov@xxxxxxxxx>
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] How to deduce the method owning the catch
statement referred by the handler join point?
Message-ID: <1323546159867-4181004.post@xxxxxxxxxxxxx>
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 <mark.kharitonov@xxxxxxxxx>
To: aspectj-users@xxxxxxxxxxx
Subject: [aspectj-users] Why would one ever want to use Load Time
Weaving?
Message-ID: <1323555913294-4181328.post@xxxxxxxxxxxxx>
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 <andrew.clement@xxxxxxxxx>
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] How to deduce the method owning the catch
statement referred by the handler join point?
Message-ID:
<CAAu=NOmt-eKPOunLs0q2j7n8zTtH0Dh8vsTgVc6WyC0X8CL1fQ@xxxxxxxxxxxxxx>
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 <mark.kharitonov@xxxxxxxxx> 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
> aspectj-users@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/aspectj-users
------------------------------
Message: 4
Date: Sun, 11 Dec 2011 01:35:23 -0800 (PST)
From: Mark <mark.kharitonov@xxxxxxxxx>
To: aspectj-users@xxxxxxxxxxx
Subject: Re: [aspectj-users] How to deduce the method owning the catch
statement referred by the handler join point?
Message-ID: <1323596123014-4182370.post@xxxxxxxxxxxxx>
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
aspectj-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/aspectj-users
End of aspectj-users Digest, Vol 82, Issue 11
*********************************************