<?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: XWork: Actions, Interceptors, Results and&#160;IoC</title>
	<atom:link href="http://www.magpiebrain.com/blog/2004/02/23/xwork-actions-interceptors-results-and-ioc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.magpiebrain.com/blog/2004/02/23/xwork-actions-interceptors-results-and-ioc/</link>
	<description>Sam Newman's blog</description>
	<pubDate>Sun, 12 Oct 2008 07:34:57 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/blog/2004/02/23/xwork-actions-interceptors-results-and-ioc/#comment-220</link>
		<dc:creator>Sam Newman</dc:creator>
		<pubDate>Tue, 24 Feb 2004 16:10:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/02/23/xwork-actions-interceptors-results-and-ioc/#comment-220</guid>
		<description>Using Spring for some of the XWork internals would still give you a command pattern decoupled from direct method calls - in fact it would be possible to configure yourself which method got called on an Action to execute it for example, giving an even more abstract framework (the need for interfaces vanishes).
Certainly XWork has value - it is a framework with a specific task that works well at what it does. Sure, someone could implement something similar using Spring on its own, but they would still have to supply the higher level mappings to make it as easy to use as XWork. I still think that by using Spring internally, you would be left with a system with the same API as now, but with more flexibility. Spring can handle Action and Result invocation, and handle interceptors, and to get the full benifit out of integrating with Spring this would make sense. The question is, is this added flexibility worth coupling XWork to another framework (be it Spring or Pico or...), or is it worth the reimplementation work. 
</description>
		<content:encoded><![CDATA[<p>Using Spring for some of the XWork internals would still give you a command pattern decoupled from direct method calls &#8211; in fact it would be possible to configure yourself which method got called on an Action to execute it for example, giving an even more abstract framework (the need for interfaces vanishes).<br />
Certainly XWork has value &#8211; it is a framework with a specific task that works well at what it does. Sure, someone could implement something similar using Spring on its own, but they would still have to supply the higher level mappings to make it as easy to use as XWork. I still think that by using Spring internally, you would be left with a system with the same <acronym title="Application Programming Interface">API</acronym> as now, but with more flexibility. Spring can handle Action and Result invocation, and handle interceptors, and to get the full benifit out of integrating with Spring this would make sense. The question is, is this added flexibility worth coupling XWork to another framework (be it Spring or Pico or&#8230;), or is it worth the reimplementation work. </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Carreira</title>
		<link>http://www.magpiebrain.com/blog/2004/02/23/xwork-actions-interceptors-results-and-ioc/#comment-219</link>
		<dc:creator>Jason Carreira</dc:creator>
		<pubDate>Tue, 24 Feb 2004 15:36:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/02/23/xwork-actions-interceptors-results-and-ioc/#comment-219</guid>
		<description>I'm not sure that's true... there's value in a command pattern implementation that's decoupled from direct method calls... Plus, XWork Interceptors give you access to XWork specific internals like the ActionInvocation. 

Results, etc, are more things XWork would add... Don't let AOP blind you to the power of normal OOP ways of doing things.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not sure that&#8217;s true&#8230; there&#8217;s value in a command pattern implementation that&#8217;s decoupled from direct method calls&#8230; Plus, XWork Interceptors give you access to XWork specific internals like the ActionInvocation. </p>
<p>Results, etc, are more things XWork would add&#8230; Don&#8217;t let AOP blind you to the power of normal OOP ways of doing things.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sam Newman</title>
		<link>http://www.magpiebrain.com/blog/2004/02/23/xwork-actions-interceptors-results-and-ioc/#comment-218</link>
		<dc:creator>Sam Newman</dc:creator>
		<pubDate>Tue, 24 Feb 2004 11:08:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/02/23/xwork-actions-interceptors-results-and-ioc/#comment-218</guid>
		<description>I think that is what XWork would become if you integrated it with Spring. Much of XWork's internals would vanish to be replaced by Spring. I'm actually starting to think that in such a situation there is very little XWork left...</description>
		<content:encoded><![CDATA[<p>I think that is what XWork would become if you integrated it with Spring. Much of XWork&#8217;s internals would vanish to be replaced by Spring. I&#8217;m actually starting to think that in such a situation there is very little XWork left&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Juan Murillo</title>
		<link>http://www.magpiebrain.com/blog/2004/02/23/xwork-actions-interceptors-results-and-ioc/#comment-217</link>
		<dc:creator>Juan Murillo</dc:creator>
		<pubDate>Mon, 23 Feb 2004 23:47:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/02/23/xwork-actions-interceptors-results-and-ioc/#comment-217</guid>
		<description>This of course also begs the question of whether a command pattern implementation on top of Spring would be an interesting addition to that framework, considering it already has AOP for interceptors and lightweight container for contexts.</description>
		<content:encoded><![CDATA[<p>This of course also begs the question of whether a command pattern implementation on top of Spring would be an interesting addition to that framework, considering it already has AOP for interceptors and lightweight container for contexts.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Carreira</title>
		<link>http://www.magpiebrain.com/blog/2004/02/23/xwork-actions-interceptors-results-and-ioc/#comment-216</link>
		<dc:creator>Jason Carreira</dc:creator>
		<pubDate>Mon, 23 Feb 2004 16:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.magpiebrain.com/2004/02/23/xwork-actions-interceptors-results-and-ioc/#comment-216</guid>
		<description>You could also populate the ActionContext ThreadLocal with the relevant objects your Interceptors can use. Your calling object could be set up using Spring to have the objects it needs, then put them in the extra context map that you pass to the ActionProxyFactory, and they will be available to your Interceptor via ActionContext.getContext().get(KEY);

I do want to make it easier to make these other objects be built by outside containers, but it's going to have to wait till at least 1.1....</description>
		<content:encoded><![CDATA[<p>You could also populate the ActionContext ThreadLocal with the relevant objects your Interceptors can use. Your calling object could be set up using Spring to have the objects it needs, then put them in the extra context map that you pass to the ActionProxyFactory, and they will be available to your Interceptor via ActionContext.getContext().get(KEY);</p>
<p>I do want to make it easier to make these other objects be built by outside containers, but it&#8217;s going to have to wait till at least 1.1&#8230;.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
