<?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 ActionScript: Café Townsend sample application</title>
	<atom:link href="http://www.herrodius.com/blog/307/feed" rel="self" type="application/rss+xml" />
	<link>http://www.herrodius.com/blog/307</link>
	<description>Thoughts from a software developer</description>
	<lastBuildDate>Wed, 30 Nov 2011 09:13:06 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Wagner Francisco Mezaroba.</title>
		<link>http://www.herrodius.com/blog/307/comment-page-1#comment-14841</link>
		<dc:creator>Wagner Francisco Mezaroba.</dc:creator>
		<pubDate>Tue, 15 Mar 2011 17:17:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=307#comment-14841</guid>
		<description>Hi Christophe,

First of all, I&#039;d like to say that Spring Actionscript is an amazing framework, it works very well and I have being using it for some months with success.

I&#039;ve seen this post some months ago and I&#039;m developing an application using the suggested approach. But I have some problems with it and I&#039;d like to hear your opinion about them.

The first one is the way you deal with the models. In your sample,  EmployeeListPresentationModel is injected by the container and this object is responsible for instantiating the EmployeeDetailPresentationModel (which is not injected). The problem for me is that I usually need to access services and beans managed by the container in my Detail classes (like EmployeeDetailPresentationModel). For example, in my app I need to create a Travel and this Travel has an Itinerary. In order to create this Itinerary (or find an existent one) I need to use another service. To solve this, when I&#039;m instantiating my Detail class I usually ask the container for an instance of the Detail class (I created a factory that has an applicationContext). But maybe there is a better solution. How do you handle this?

Another question is, why don&#039;t you save the employee in the EmployeeDetailPresentationModel class? The way you have done works very well in your example. But if I needed to show the window to save employees in a different place? I would have to create listeners for the Detail class again? Wouldn&#039;t it be better if the Detail class were able to save the employee?

And the last question is... you said that in big applications it might be necessary to disable autowiring. My question is... if I&#039;m using too much this resource, my application will be slow just in the beggining? Or every time I need to inject an autowired class it will be more slow?


Thanks in advance, I really appreciate your work.</description>
		<content:encoded><![CDATA[<p>Hi Christophe,</p>
<p>First of all, I&#8217;d like to say that Spring Actionscript is an amazing framework, it works very well and I have being using it for some months with success.</p>
<p>I&#8217;ve seen this post some months ago and I&#8217;m developing an application using the suggested approach. But I have some problems with it and I&#8217;d like to hear your opinion about them.</p>
<p>The first one is the way you deal with the models. In your sample,  EmployeeListPresentationModel is injected by the container and this object is responsible for instantiating the EmployeeDetailPresentationModel (which is not injected). The problem for me is that I usually need to access services and beans managed by the container in my Detail classes (like EmployeeDetailPresentationModel). For example, in my app I need to create a Travel and this Travel has an Itinerary. In order to create this Itinerary (or find an existent one) I need to use another service. To solve this, when I&#8217;m instantiating my Detail class I usually ask the container for an instance of the Detail class (I created a factory that has an applicationContext). But maybe there is a better solution. How do you handle this?</p>
<p>Another question is, why don&#8217;t you save the employee in the EmployeeDetailPresentationModel class? The way you have done works very well in your example. But if I needed to show the window to save employees in a different place? I would have to create listeners for the Detail class again? Wouldn&#8217;t it be better if the Detail class were able to save the employee?</p>
<p>And the last question is&#8230; you said that in big applications it might be necessary to disable autowiring. My question is&#8230; if I&#8217;m using too much this resource, my application will be slow just in the beggining? Or every time I need to inject an autowired class it will be more slow?</p>
<p>Thanks in advance, I really appreciate your work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe</title>
		<link>http://www.herrodius.com/blog/307/comment-page-1#comment-14807</link>
		<dc:creator>Christophe</dc:creator>
		<pubDate>Tue, 25 Jan 2011 10:06:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=307#comment-14807</guid>
		<description>Hi Ceas, that&#039;s a good remark. The schema is a bit unclear in that sense since the infrastructure layer should really be drawn vertically next to the other tiers.</description>
		<content:encoded><![CDATA[<p>Hi Ceas, that&#8217;s a good remark. The schema is a bit unclear in that sense since the infrastructure layer should really be drawn vertically next to the other tiers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ceas</title>
		<link>http://www.herrodius.com/blog/307/comment-page-1#comment-14805</link>
		<dc:creator>Ceas</dc:creator>
		<pubDate>Fri, 21 Jan 2011 15:10:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=307#comment-14805</guid>
		<description>I know this is a small issue but if my understanding is correct about the architecture layers and the diagram, each layer shouldn&#039;t have reference to the layer above it. If this is true, why are concrete services in infrastructure implementing interfaces from  from the domain layer?</description>
		<content:encoded><![CDATA[<p>I know this is a small issue but if my understanding is correct about the architecture layers and the diagram, each layer shouldn&#8217;t have reference to the layer above it. If this is true, why are concrete services in infrastructure implementing interfaces from  from the domain layer?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flash video news</title>
		<link>http://www.herrodius.com/blog/307/comment-page-1#comment-14606</link>
		<dc:creator>Flash video news</dc:creator>
		<pubDate>Fri, 23 Jul 2010 21:33:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=307#comment-14606</guid>
		<description>Thanks for publishing this. the layered architecture diagram was helpful. I just downloaded the source code. time to start playing! Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for publishing this. the layered architecture diagram was helpful. I just downloaded the source code. time to start playing! Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike Hemelberg</title>
		<link>http://www.herrodius.com/blog/307/comment-page-1#comment-14603</link>
		<dc:creator>Mike Hemelberg</dc:creator>
		<pubDate>Wed, 21 Jul 2010 17:14:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=307#comment-14603</guid>
		<description>Hi Christophe,

Awesome post. Is it OK to add style names to presentation model classes?

For example,

public var price:Number;
public var priceStyleName:String;
public var priceOverStyleName:String;
public var titleStyleName:String;</description>
		<content:encoded><![CDATA[<p>Hi Christophe,</p>
<p>Awesome post. Is it OK to add style names to presentation model classes?</p>
<p>For example,</p>
<p>public var price:Number;<br />
public var priceStyleName:String;<br />
public var priceOverStyleName:String;<br />
public var titleStyleName:String;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe</title>
		<link>http://www.herrodius.com/blog/307/comment-page-1#comment-14524</link>
		<dc:creator>Christophe</dc:creator>
		<pubDate>Wed, 28 Apr 2010 12:16:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=307#comment-14524</guid>
		<description>Hi Murug, I think you can download the Cairngorm sources here :http://www.cairngormdocs.org/exampleApps/CafeTownsend.zip</description>
		<content:encoded><![CDATA[<p>Hi Murug, I think you can download the Cairngorm sources here :<a href="http://www.cairngormdocs.org/exampleApps/CafeTownsend.zip" rel="nofollow">http://www.cairngormdocs.org/exampleApps/CafeTownsend.zip</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Murug</title>
		<link>http://www.herrodius.com/blog/307/comment-page-1#comment-14523</link>
		<dc:creator>Murug</dc:creator>
		<pubDate>Mon, 26 Apr 2010 06:41:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=307#comment-14523</guid>
		<description>Hi,

Can any one give me the link to donwload the source code of cairngorm -- Cafe Townsend application.

Muruga</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Can any one give me the link to donwload the source code of cairngorm &#8212; Cafe Townsend application.</p>
<p>Muruga</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christophe</title>
		<link>http://www.herrodius.com/blog/307/comment-page-1#comment-14519</link>
		<dc:creator>Christophe</dc:creator>
		<pubDate>Tue, 20 Apr 2010 06:33:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=307#comment-14519</guid>
		<description>Hi spiritj,

since we can&#039;t read the private variables of an object via reflection, we need to annotate a public variable which can then be autowired. It does not really matter if you annotate the getter or the setter, since these are treated as 1 accessor with read/write properties.

regards,
Christophe</description>
		<content:encoded><![CDATA[<p>Hi spiritj,</p>
<p>since we can&#8217;t read the private variables of an object via reflection, we need to annotate a public variable which can then be autowired. It does not really matter if you annotate the getter or the setter, since these are treated as 1 accessor with read/write properties.</p>
<p>regards,<br />
Christophe</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spiritj</title>
		<link>http://www.herrodius.com/blog/307/comment-page-1#comment-14485</link>
		<dc:creator>spiritj</dc:creator>
		<pubDate>Sun, 04 Apr 2010 09:01:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=307#comment-14485</guid>
		<description>Hi,Christophe: 
i found that private property can&#039;t be autowired,right?
but my another question is why u autowire the getter but not the setter,
any different? Does getter autowiring means unconditionally autowired?

waiting ur reply...

regards,

spiritj</description>
		<content:encoded><![CDATA[<p>Hi,Christophe:<br />
i found that private property can&#8217;t be autowired,right?<br />
but my another question is why u autowire the getter but not the setter,<br />
any different? Does getter autowiring means unconditionally autowired?</p>
<p>waiting ur reply&#8230;</p>
<p>regards,</p>
<p>spiritj</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: spiritj</title>
		<link>http://www.herrodius.com/blog/307/comment-page-1#comment-14481</link>
		<dc:creator>spiritj</dc:creator>
		<pubDate>Sun, 04 Apr 2010 06:04:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.herrodius.com/blog/?p=307#comment-14481</guid>
		<description>really excellent work.
One confusing here:
while everything running fine in ur micro-container,but in ur &quot;EmployeeList.mxml&quot;,in the area of private properties declaration,
I&#039;m wondering why &quot;[Autowired]&quot; not directly worked on the property &quot;_presentationModel&quot; instead of its getter function?code given below:

//[Autowired] &lt;-why not work?
private var _presentationModel:EmployeeListPresentationModel;

[Autowired] //why it work? wot&#039;s the meaning of &quot;autowired a (getter)funtion&quot;?
[Bindable(event=&quot;presentationModelChange&quot;)]
public function get presentationModel():EmployeeListPresentationModel {
  return _presentationModel;
}
...
//presentationModel using here


Hoping ur reply

regards,

spiritj</description>
		<content:encoded><![CDATA[<p>really excellent work.<br />
One confusing here:<br />
while everything running fine in ur micro-container,but in ur &#8220;EmployeeList.mxml&#8221;,in the area of private properties declaration,<br />
I&#8217;m wondering why &#8220;[Autowired]&#8221; not directly worked on the property &#8220;_presentationModel&#8221; instead of its getter function?code given below:</p>
<p>//[Autowired] &lt;-why not work?<br />
private var _presentationModel:EmployeeListPresentationModel;</p>
<p>[Autowired] //why it work? wot&#039;s the meaning of &quot;autowired a (getter)funtion&quot;?<br />
[Bindable(event=&quot;presentationModelChange&quot;)]<br />
public function get presentationModel():EmployeeListPresentationModel {<br />
  return _presentationModel;<br />
}<br />
&#8230;<br />
//presentationModel using here</p>
<p>Hoping ur reply</p>
<p>regards,</p>
<p>spiritj</p>
]]></content:encoded>
	</item>
</channel>
</rss>

