<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Spring annotation based AOP and intercepting the ball</title>
	<atom:link href="http://eggsylife.co.uk/2010/02/03/spring-annotation-based-aop-and-intercepting-the-ball/feed/" rel="self" type="application/rss+xml" />
	<link>http://eggsylife.co.uk/2010/02/03/spring-annotation-based-aop-and-intercepting-the-ball/</link>
	<description>Eggsylife</description>
	<lastBuildDate>Mon, 30 Jan 2012 00:48:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: admin</title>
		<link>http://eggsylife.co.uk/2010/02/03/spring-annotation-based-aop-and-intercepting-the-ball/comment-page-1/#comment-332</link>
		<dc:creator>admin</dc:creator>
		<pubDate>Sat, 28 Jan 2012 21:14:29 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=236#comment-332</guid>
		<description>To Expand a little on what Alex means. Spring AOP is proxy based and method calls to this.doSomething() will not be wrapped as you&#039;d expect.

Info from the Spring docs:

&lt;em&gt;The key thing to understand here is that the client code inside the main(..) of the Main class has a reference to the proxy. This means that method calls on that object reference will be calls on the proxy, and as such the proxy will be able to delegate to all of the interceptors (advice) that are relevant to that particular method call. However, once the call has finally reached the target object, the SimplePojo reference in this case, any method calls that it may make on itself, such as this.bar() or this.foo(), are going to be invoked against the this reference, and not the proxy. This has important implications. It means that self-invocation is not going to result in the advice associated with a method invocation getting a chance to execute.&lt;/em&gt;

More info on this can be found here:

http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/aop.html#aop-understanding-aop-proxies</description>
		<content:encoded><![CDATA[<p>To Expand a little on what Alex means. Spring AOP is proxy based and method calls to this.doSomething() will not be wrapped as you&#8217;d expect.</p>
<p>Info from the Spring docs:</p>
<p><em>The key thing to understand here is that the client code inside the main(..) of the Main class has a reference to the proxy. This means that method calls on that object reference will be calls on the proxy, and as such the proxy will be able to delegate to all of the interceptors (advice) that are relevant to that particular method call. However, once the call has finally reached the target object, the SimplePojo reference in this case, any method calls that it may make on itself, such as this.bar() or this.foo(), are going to be invoked against the this reference, and not the proxy. This has important implications. It means that self-invocation is not going to result in the advice associated with a method invocation getting a chance to execute.</em></p>
<p>More info on this can be found here:</p>
<p><a href="http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/aop.html#aop-understanding-aop-proxies" rel="nofollow">http://static.springsource.org/spring/docs/3.0.x/spring-framework-reference/html/aop.html#aop-understanding-aop-proxies</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://eggsylife.co.uk/2010/02/03/spring-annotation-based-aop-and-intercepting-the-ball/comment-page-1/#comment-331</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 27 Jan 2012 15:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=236#comment-331</guid>
		<description>Or even more often situation. Class X with two methods methodA and methodB. Only methodB is annotated. If methodB is invoked from methodA, than logAction() will never be invoked.</description>
		<content:encoded><![CDATA[<p>Or even more often situation. Class X with two methods methodA and methodB. Only methodB is annotated. If methodB is invoked from methodA, than logAction() will never be invoked.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://eggsylife.co.uk/2010/02/03/spring-annotation-based-aop-and-intercepting-the-ball/comment-page-1/#comment-330</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Fri, 27 Jan 2012 15:45:51 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=236#comment-330</guid>
		<description>Hi.

You forgot to mention that if two annotated methods are in one class(methodA and methodB) and methodA is invoking methodB than logAction(...) will be invoked only once...</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>You forgot to mention that if two annotated methods are in one class(methodA and methodB) and methodA is invoking methodB than logAction(&#8230;) will be invoked only once&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: afthab</title>
		<link>http://eggsylife.co.uk/2010/02/03/spring-annotation-based-aop-and-intercepting-the-ball/comment-page-1/#comment-323</link>
		<dc:creator>afthab</dc:creator>
		<pubDate>Fri, 07 Oct 2011 09:11:43 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=236#comment-323</guid>
		<description>Make sure you are giving correct pacakge name for @pointcut. Here it is given  such a way that , it will take all packages.</description>
		<content:encoded><![CDATA[<p>Make sure you are giving correct pacakge name for @pointcut. Here it is given  such a way that , it will take all packages.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jelramzy</title>
		<link>http://eggsylife.co.uk/2010/02/03/spring-annotation-based-aop-and-intercepting-the-ball/comment-page-1/#comment-288</link>
		<dc:creator>jelramzy</dc:creator>
		<pubDate>Mon, 21 Mar 2011 12:49:34 +0000</pubDate>
		<guid isPermaLink="false">http://eggsylife.co.uk/?p=236#comment-288</guid>
		<description>Hi,

i used your code sample but i don&#039;t see the poincut executed ! it is just ignored!
i am using aspectj 1.6.10 with Spring3</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>i used your code sample but i don&#8217;t see the poincut executed ! it is just ignored!<br />
i am using aspectj 1.6.10 with Spring3</p>
]]></content:encoded>
	</item>
</channel>
</rss>

