<?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: Static Mock using AspectJ</title>
	<atom:link href="http://blog.jayway.com/2007/02/16/static-mock-using-aspectj/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.jayway.com/2007/02/16/static-mock-using-aspectj/</link>
	<description>Sharing Experience</description>
	<lastBuildDate>Sun, 12 Feb 2012 05:23:29 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jan Kronquist</title>
		<link>http://blog.jayway.com/2007/02/16/static-mock-using-aspectj/comment-page-1/#comment-732</link>
		<dc:creator>Jan Kronquist</dc:creator>
		<pubDate>Thu, 15 Jan 2009 08:29:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=284#comment-732</guid>
		<description>We have actually taken this idea a step further using our own custom classloader and created an open source tool that does static mock (among many other things). Take a look at http://blog.jayway.com/tag/powermock/ or http://powermock.org.</description>
		<content:encoded><![CDATA[<p>We have actually taken this idea a step further using our own custom classloader and created an open source tool that does static mock (among many other things). Take a look at <a href="http://blog.jayway.com/tag/powermock/" rel="nofollow">http://blog.jayway.com/tag/powermock/</a> or <a href="http://powermock.org" rel="nofollow">http://powermock.org</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derrick</title>
		<link>http://blog.jayway.com/2007/02/16/static-mock-using-aspectj/comment-page-1/#comment-646</link>
		<dc:creator>Derrick</dc:creator>
		<pubDate>Wed, 14 Jan 2009 19:18:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.jayway.com/?p=284#comment-646</guid>
		<description>I&#039;ve done something similar when I have had the source.  Use AspectJ for compile time weaving, then use Spring for DI in the aspect itself.  There are two reasons I took this root.  The class is not Spring Managed and Spring itself cannot intercept a static method.

The problem I have now is I need to do something similar to a class that I do not have the source for.  AspectJ has support for LTW (Load Time Weaving).  What I was thinking is I could use @AspectJ for LTW and Spring for DI.

The first scenario works beautifully, but I cannot get my second scenario to work.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve done something similar when I have had the source.  Use AspectJ for compile time weaving, then use Spring for DI in the aspect itself.  There are two reasons I took this root.  The class is not Spring Managed and Spring itself cannot intercept a static method.</p>
<p>The problem I have now is I need to do something similar to a class that I do not have the source for.  AspectJ has support for LTW (Load Time Weaving).  What I was thinking is I could use @AspectJ for LTW and Spring for DI.</p>
<p>The first scenario works beautifully, but I cannot get my second scenario to work.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

