<?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"
	>
<channel>
	<title>Comments on: AOP with AspectJ</title>
	<atom:link href="http://www.christianschenk.org/blog/aop-with-aspectj/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.christianschenk.org/blog/aop-with-aspectj/</link>
	<description>Writing about my experiences with technology and all different kinds of projects and experiments</description>
	<pubDate>Thu, 04 Dec 2008 07:53:41 +0000</pubDate>
	
		<item>
		<title>By: Christian Schenk</title>
		<link>http://www.christianschenk.org/blog/aop-with-aspectj/#comment-570</link>
		<dc:creator>Christian Schenk</dc:creator>
		<pubDate>Thu, 03 Jan 2008 17:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/blog/aop-with-aspectj/#comment-570</guid>
		<description>Hi ramkumar,

have a look at my posts tagged with &lt;a title="aspectj tag on Christian Schenk" href="http://www.christianschenk.org/blog/tag/aspectj/" rel="nofollow"&gt;aspectj&lt;/a&gt; and e.g. &lt;a title="Logging with AspectJ" href="http://www.christianschenk.org/blog/logging-with-aspectj/" rel="nofollow"&gt;this&lt;/a&gt; post.

Wasn't the sample code working for you? Why not? Probably I can help you to get it running.

Cheers,
Christian</description>
		<content:encoded><![CDATA[<p>Hi ramkumar,</p>
<p>have a look at my posts tagged with <a title="aspectj tag on Christian Schenk" href="http://www.christianschenk.org/blog/tag/aspectj/">aspectj</a> and e.g. <a title="Logging with AspectJ" href="http://www.christianschenk.org/blog/logging-with-aspectj/">this</a> post.</p>
<p>Wasn&#8217;t the sample code working for you? Why not? Probably I can help you to get it running.</p>
<p>Cheers,<br />
Christian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramkumar</title>
		<link>http://www.christianschenk.org/blog/aop-with-aspectj/#comment-569</link>
		<dc:creator>ramkumar</dc:creator>
		<pubDate>Thu, 03 Jan 2008 16:46:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/blog/aop-with-aspectj/#comment-569</guid>
		<description>hi appreciate ur immediate reply. iam doing a POC. iam stuck in middle. my question is how will the class (where the business logic is implemented) calls the class(where the aspects have been defined).how will i run my code that enables logging?

do i need any xml file to be in place to say that find aspects class in this place if so where wud i need to declare the path of the xml?

if iam wrong in my understanding of this concept plz do guide with a solid running example so if i jus run in eclipse i can see a output.

plz do take the pain in helping me out.
thanks in advance</description>
		<content:encoded><![CDATA[<p>hi appreciate ur immediate reply. iam doing a POC. iam stuck in middle. my question is how will the class (where the business logic is implemented) calls the class(where the aspects have been defined).how will i run my code that enables logging?</p>
<p>do i need any xml file to be in place to say that find aspects class in this place if so where wud i need to declare the path of the xml?</p>
<p>if iam wrong in my understanding of this concept plz do guide with a solid running example so if i jus run in eclipse i can see a output.</p>
<p>plz do take the pain in helping me out.<br />
thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Schenk</title>
		<link>http://www.christianschenk.org/blog/aop-with-aspectj/#comment-568</link>
		<dc:creator>Christian Schenk</dc:creator>
		<pubDate>Thu, 03 Jan 2008 16:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/blog/aop-with-aspectj/#comment-568</guid>
		<description>Hi ramkumar,

have a look at the weaving process of AspectJ &lt;a title="AspectJ Bytecode weaving" href="http://www.eclipse.org/aspectj/doc/released/devguide/bytecode-concepts.html" rel="nofollow"&gt;here&lt;/a&gt; or &lt;a title="AspectJ Load-Time Weaving" href="http://www.eclipse.org/aspectj/doc/released/devguide/ltw.html" rel="nofollow"&gt;here&lt;/a&gt;. Although a little bit more abstract, &lt;a title="Aspect-oriented programming on Wikipedia" href="http://en.wikipedia.org/wiki/Aspect-oriented_programming#Implementation" rel="nofollow"&gt;this&lt;/a&gt; article might be interesting too.

Basically, a framework like AspectJ reads your aspects, locates the positions in the code where these aspects should be executed and &lt;em&gt;weaves&lt;/em&gt; the additional code into your existing code. In the example of your aspect with some logging statements the code gets weaved into the class with your business logic. This way the resulting class file contains both: the code from your aspect &lt;em&gt;and&lt;/em&gt; the code from your class with business logic. So, your class with business logic will not call your class with some logging at all - the code will just be executed at the positions (&lt;a title="Wikipedia Join point" href="http://en.wikipedia.org/wiki/Join_point" rel="nofollow"&gt;join points&lt;/a&gt;) specified in your aspects.

By the way: if you wouldn't weave your aspects into your existing code, the code defined in your aspects will not be executed. This is an ideal way to strip away debug logging statements from your program for a production environment. You would just have to turn off the aspects and that would be it.

Hope that helps...

Cheers,
Christian</description>
		<content:encoded><![CDATA[<p>Hi ramkumar,</p>
<p>have a look at the weaving process of AspectJ <a title="AspectJ Bytecode weaving" href="http://www.eclipse.org/aspectj/doc/released/devguide/bytecode-concepts.html">here</a> or <a title="AspectJ Load-Time Weaving" href="http://www.eclipse.org/aspectj/doc/released/devguide/ltw.html">here</a>. Although a little bit more abstract, <a title="Aspect-oriented programming on Wikipedia" href="http://en.wikipedia.org/wiki/Aspect-oriented_programming#Implementation">this</a> article might be interesting too.</p>
<p>Basically, a framework like AspectJ reads your aspects, locates the positions in the code where these aspects should be executed and <em>weaves</em> the additional code into your existing code. In the example of your aspect with some logging statements the code gets weaved into the class with your business logic. This way the resulting class file contains both: the code from your aspect <em>and</em> the code from your class with business logic. So, your class with business logic will not call your class with some logging at all - the code will just be executed at the positions (<a title="Wikipedia Join point" href="http://en.wikipedia.org/wiki/Join_point">join points</a>) specified in your aspects.</p>
<p>By the way: if you wouldn&#8217;t weave your aspects into your existing code, the code defined in your aspects will not be executed. This is an ideal way to strip away debug logging statements from your program for a production environment. You would just have to turn off the aspects and that would be it.</p>
<p>Hope that helps&#8230;</p>
<p>Cheers,<br />
Christian</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramkumar</title>
		<link>http://www.christianschenk.org/blog/aop-with-aspectj/#comment-566</link>
		<dc:creator>ramkumar</dc:creator>
		<pubDate>Thu, 03 Jan 2008 07:22:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/blog/aop-with-aspectj/#comment-566</guid>
		<description>hi i jus went through this article and i really appreciate ur effort in this . can u tell me how exactly this class which i have written for logging using aspects is called by my class where business logic resides. do help in this even if this sounds naive to u. thanks in advance</description>
		<content:encoded><![CDATA[<p>hi i jus went through this article and i really appreciate ur effort in this . can u tell me how exactly this class which i have written for logging using aspects is called by my class where business logic resides. do help in this even if this sounds naive to u. thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Logging with AspectJ</title>
		<link>http://www.christianschenk.org/blog/aop-with-aspectj/#comment-82</link>
		<dc:creator>Logging with AspectJ</dc:creator>
		<pubDate>Fri, 03 Aug 2007 07:24:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.christianschenk.org/blog/aop-with-aspectj/#comment-82</guid>
		<description>[...] Again, I would like to endorse the usage of aspect oriented programming because it may ease development significantly. That&#8217;s almost always the case with crosscutting concerns like logging and in this post we&#8217;ll develop a solution with AspectJ. So, adding logging to your application is as easy as this: [...]</description>
		<content:encoded><![CDATA[<p>[...] Again, I would like to endorse the usage of aspect oriented programming because it may ease development significantly. That&#8217;s almost always the case with crosscutting concerns like logging and in this post we&#8217;ll develop a solution with AspectJ. So, adding logging to your application is as easy as this: [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
