<?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: The Spring ActionScript Framework &#8212; Part 3: Injecting Services (and Mock Services)</title>
	<atom:link href="http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mock-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mock-services/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=the-spring-actionscript-framework-part-3-injecting-services-and-mock-services</link>
	<description>Mobile, Cloud, HTML, JavaScript, Java, PHP, Flex</description>
	<lastBuildDate>Tue, 07 Feb 2012 03:43:09 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Christophe Coenraets &#187; Blog Archive &#187; Building a Flex Application with the Parsley Framework</title>
		<link>http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mock-services/#comment-3947</link>
		<dc:creator>Christophe Coenraets &#187; Blog Archive &#187; Building a Flex Application with the Parsley Framework</dc:creator>
		<pubDate>Thu, 16 Jul 2009 20:47:57 +0000</pubDate>
		<guid isPermaLink="false">http://coenraets.org/blog/?p=112#comment-3947</guid>
		<description>[...] my recent explorations of “Swiz”, and “Spring ActionScript” (1,2,3), I decided to take the new version of the Parsley framework for a test drive, and build the [...]</description>
		<content:encoded><![CDATA[<p>[...] my recent explorations of “Swiz”, and “Spring ActionScript” (1,2,3), I decided to take the new version of the Parsley framework for a test drive, and build the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jan-Hendrik</title>
		<link>http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mock-services/#comment-3946</link>
		<dc:creator>Jan-Hendrik</dc:creator>
		<pubDate>Sat, 30 May 2009 11:46:12 +0000</pubDate>
		<guid isPermaLink="false">http://coenraets.org/blog/?p=112#comment-3946</guid>
		<description>Hi Christophe!

Thanks a lot for your high quality articles. They helped a lot in the past to figure out the internals of how things work. I especially liked the LCDS parts!

Jan-Hendrik</description>
		<content:encoded><![CDATA[<p>Hi Christophe!</p>
<p>Thanks a lot for your high quality articles. They helped a lot in the past to figure out the internals of how things work. I especially liked the LCDS parts!</p>
<p>Jan-Hendrik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JMilo</title>
		<link>http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mock-services/#comment-3945</link>
		<dc:creator>JMilo</dc:creator>
		<pubDate>Thu, 28 May 2009 02:48:07 +0000</pubDate>
		<guid isPermaLink="false">http://coenraets.org/blog/?p=112#comment-3945</guid>
		<description>How to set up the project src and lib files for using the command line flexbuilder?</description>
		<content:encoded><![CDATA[<p>How to set up the project src and lib files for using the command line flexbuilder?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mock-services/#comment-3944</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Sun, 05 Apr 2009 10:21:36 +0000</pubDate>
		<guid isPermaLink="false">http://coenraets.org/blog/?p=112#comment-3944</guid>
		<description>Kyle Glossy Says: &quot;It would be great if we could somehow associate these class inclusions with the ApplicationContext object instead of the component that doesn’t really care what implementation it is using. Do you have any thoughts on how that could work?&quot;

This is the disadvantage of using an XML based configuration for Flex IOC. The Flicc framework, http://flicc.sourceforge.net, uses MXML - so you still get the structured configuration layout of XML, but classes are compiled in to the SWF, removing the need for the forced compilation of classes using private unused variables.</description>
		<content:encoded><![CDATA[<p>Kyle Glossy Says: &#8220;It would be great if we could somehow associate these class inclusions with the ApplicationContext object instead of the component that doesn’t really care what implementation it is using. Do you have any thoughts on how that could work?&#8221;</p>
<p>This is the disadvantage of using an XML based configuration for Flex IOC. The Flicc framework, <a href="http://flicc.sourceforge.net" rel="nofollow">http://flicc.sourceforge.net</a>, uses MXML &#8211; so you still get the structured configuration layout of XML, but classes are compiled in to the SWF, removing the need for the forced compilation of classes using private unused variables.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 31/03/2009 &#171; Robertopriz&#8217;s Weblog</title>
		<link>http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mock-services/#comment-3943</link>
		<dc:creator>31/03/2009 &#171; Robertopriz&#8217;s Weblog</dc:creator>
		<pubDate>Tue, 31 Mar 2009 09:25:46 +0000</pubDate>
		<guid isPermaLink="false">http://coenraets.org/blog/?p=112#comment-3943</guid>
		<description>[...] Christophe Coenraets spring flex  http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mo... [...]</description>
		<content:encoded><![CDATA[<p>[...] Christophe Coenraets spring flex  <a href="http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mo.." rel="nofollow">http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mo..</a>. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kyle Glossy</title>
		<link>http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mock-services/#comment-3942</link>
		<dc:creator>Kyle Glossy</dc:creator>
		<pubDate>Mon, 30 Mar 2009 18:24:06 +0000</pubDate>
		<guid isPermaLink="false">http://coenraets.org/blog/?p=112#comment-3942</guid>
		<description>Great series Christophe.  Thanks for sharing.

In Part 1, you mentioned that Part 3 would show how to tell the Flex compiler to include the classes that the framework can load dynamically.  Based on your code, it looks like you are declaring a couple of private vars that don&#039;t get used by the app, but force the complier to link in the classes.

  // Force the compiler to include these classes
  private var contactService:ContactRemoteObjectService;
  private var contactMockService:ContactMockService;

It would be great if we could somehow associate these class inclusions with the ApplicationContext object instead of the component that doesn&#039;t really care what implementation it is using.  Do you have any thoughts on how that could work?</description>
		<content:encoded><![CDATA[<p>Great series Christophe.  Thanks for sharing.</p>
<p>In Part 1, you mentioned that Part 3 would show how to tell the Flex compiler to include the classes that the framework can load dynamically.  Based on your code, it looks like you are declaring a couple of private vars that don&#8217;t get used by the app, but force the complier to link in the classes.</p>
<p>  // Force the compiler to include these classes<br />
  private var contactService:ContactRemoteObjectService;<br />
  private var contactMockService:ContactMockService;</p>
<p>It would be great if we could somehow associate these class inclusions with the ApplicationContext object instead of the component that doesn&#8217;t really care what implementation it is using.  Do you have any thoughts on how that could work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 翻译(THE “SPRING ACTIONSCRIPT” FRAMEWORK) &#171; Raven&#8217;s Blog</title>
		<link>http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mock-services/#comment-3941</link>
		<dc:creator>翻译(THE “SPRING ACTIONSCRIPT” FRAMEWORK) &#171; Raven&#8217;s Blog</dc:creator>
		<pubDate>Tue, 24 Mar 2009 05:59:37 +0000</pubDate>
		<guid isPermaLink="false">http://coenraets.org/blog/?p=112#comment-3941</guid>
		<description>[...] Part 3 注入service [...]</description>
		<content:encoded><![CDATA[<p>[...] Part 3 注入service [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian LeGros</title>
		<link>http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mock-services/#comment-3940</link>
		<dc:creator>Brian LeGros</dc:creator>
		<pubDate>Mon, 23 Mar 2009 20:56:05 +0000</pubDate>
		<guid isPermaLink="false">http://coenraets.org/blog/?p=112#comment-3940</guid>
		<description>I can see in this example how your ContactMockService will help you test IContactService, but exercising ContactRemoteObjectService could also be benficial from a unit testing perspective.  At Fluint, for release 1.2.0, which should be coming out in a month or so, we&#039;re going to be offering stub classes for HttpService and RemoteObject (given time also WebService and URLLoader) that will offer some convenience methods for stubbing out Flex framework classes that talk to the outside world.  This can be injected into your service implementation and don&#039;t require external resources (i.e. - db, files, etc).  Since we don&#039;t have the notion of type-safe mock frameworks for AS3 yet, and testing async stuff can be tricky, we&#039;re hoping these types of tools will help the community in creating regression testable unit and integration tests.

If anyone can&#039;t wait, or is interested, I blogged about the initial go at http://www.brianlegros.com/blog/2009/02/21/using-stubs-for-httpservice-and-remoteobject-in-flex/.</description>
		<content:encoded><![CDATA[<p>I can see in this example how your ContactMockService will help you test IContactService, but exercising ContactRemoteObjectService could also be benficial from a unit testing perspective.  At Fluint, for release 1.2.0, which should be coming out in a month or so, we&#8217;re going to be offering stub classes for HttpService and RemoteObject (given time also WebService and URLLoader) that will offer some convenience methods for stubbing out Flex framework classes that talk to the outside world.  This can be injected into your service implementation and don&#8217;t require external resources (i.e. &#8211; db, files, etc).  Since we don&#8217;t have the notion of type-safe mock frameworks for AS3 yet, and testing async stuff can be tricky, we&#8217;re hoping these types of tools will help the community in creating regression testable unit and integration tests.</p>
<p>If anyone can&#8217;t wait, or is interested, I blogged about the initial go at <a href="http://www.brianlegros.com/blog/2009/02/21/using-stubs-for-httpservice-and-remoteobject-in-flex/" rel="nofollow">http://www.brianlegros.com/blog/2009/02/21/using-stubs-for-httpservice-and-remoteobject-in-flex/</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rob Moore</title>
		<link>http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mock-services/#comment-3939</link>
		<dc:creator>Rob Moore</dc:creator>
		<pubDate>Fri, 20 Mar 2009 23:40:35 +0000</pubDate>
		<guid isPermaLink="false">http://coenraets.org/blog/?p=112#comment-3939</guid>
		<description>It appears the example is referencing flexlib which isn&#039;t included in the zip. The SWC file can be found at http://code.google.com/p/flexlib/downloads/list.</description>
		<content:encoded><![CDATA[<p>It appears the example is referencing flexlib which isn&#8217;t included in the zip. The SWC file can be found at <a href="http://code.google.com/p/flexlib/downloads/list" rel="nofollow">http://code.google.com/p/flexlib/downloads/list</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://coenraets.org/blog/2009/03/the-spring-actionscript-framework-part-3-injecting-services-and-mock-services/#comment-3938</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Fri, 20 Mar 2009 19:42:46 +0000</pubDate>
		<guid isPermaLink="false">http://coenraets.org/blog/?p=112#comment-3938</guid>
		<description>I get the error when I run the demo in my pc.it can not open config file.
why this happen?

Thanks

Error Message:

SecurityError: Error #2148: SWF file file:///C:/FLEXROOT/Spring3/bin-debug/springaspart3.swf cannot access local resource applicationContext.xml?192555. Only local-with-filesystem and trusted local SWF files may access local resources.
	at flash.net::URLStream/load()</description>
		<content:encoded><![CDATA[<p>I get the error when I run the demo in my pc.it can not open config file.<br />
why this happen?</p>
<p>Thanks</p>
<p>Error Message:</p>
<p>SecurityError: Error #2148: SWF file file:///C:/FLEXROOT/Spring3/bin-debug/springaspart3.swf cannot access local resource applicationContext.xml?192555. Only local-with-filesystem and trusted local SWF files may access local resources.<br />
	at flash.net::URLStream/load()</p>
]]></content:encoded>
	</item>
</channel>
</rss>

