Spring ActionScript 1.1 Released
ActionScript, Air, Flash, Flex, Inversion of Control, Spring ActionScript Add commentsDear community,
We're pleased to announce that Spring ActionScript 1.1 is now available.
Download | API Documentation | HTML Docs | Changelog
Besides a series of bugfixes, this release adds the following new features and enhancements:
Component Scanning & Context XML Namespace
Just like XML and MXML configuration, component scanning is a way to configure objects to be used in the application context. This is done by adding [Component] metadata to classes that you want to expose as objects to the container. The container will then scan all classes or the classes in a package you specify and create object definitions for the classes that have Component metadata. This means that you can configure your application with a minimum of XML or MXML configuration.
The newly added "context" namespace currently contains a "component-scan" and a "metadata-config" element. The first one enables component scanning as described above. The "metadata-config" registers common metadata processors and reduces the configuration needed to use these processors.
-
<context:component-scan/>
-
<context:metadata-config/>
For more info, see the documentation: Component Scanning
Test Framework
The Spring ActionScript integration testing support framework provides several abstract support classes that can simplify writing integration tests. These base test classes provide well defined hooks into the testing framework. Currently, only FlexUnit 4 is supported.
More info can be found in the Test Framework section of the documentation.
PostConstruct, PreDestroy and Inject Metadata
To be in line with industry standards, we added support for the PostConstruct, PreDestroy and Inject metadata.
PostConstruct and PreDestroy are annotations that allow you to call methods in a specific phase in the lifecycle of a component. The Inject metadata is used as an alias for the Autowired metadata.
More Information
For more general information on the Spring ActionScript framework, please see the following links:
- Spring ActionScript Homepage
- Reference Documentation
- API Documentation
- Sample Applications
- User Forum
- Jira
Enjoy this release and have fun coding!
Add to Bloglines - Digg This! - del.icio.us - Stumble It! - Twit This! - Technorati links - Share on Facebook - Feedburner
Christophe Herreman is a software developer living in Belgium. He's working on high-end Flex and AIR solutions at 
November 5th, 2010 at 4:06 pm
Cool with the new release.
I tried out the component-scan feature, and it kinda works for me
When I did as documentation said to do, I got this exception:
Error: No namespace handler found for node ” with URI ‘http://www.springactionscript.org/schema/context’
at org.springextensions.actionscript.ioc.factory.xml.parser.support::XMLObjectDefinitionsParser/parseCustomNode()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\xml\parser\support\XMLObjectDefinitionsParser.as:357]
at org.springextensions.actionscript.ioc.factory.xml.parser.support::XMLObjectDefinitionsParser/parseNode()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\xml\parser\support\XMLObjectDefinitionsParser.as:324]
at org.springextensions.actionscript.ioc.factory.xml.parser.support::XMLObjectDefinitionsParser/parseObjectDefinitions()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\xml\parser\support\XMLObjectDefinitionsParser.as:312]
at org.springextensions.actionscript.ioc.factory.xml.parser.support::XMLObjectDefinitionsParser/parse()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\ioc\factory\xml\parser\support\XMLObjectDefinitionsParser.as:273]
at org.springextensions.actionscript.context.support::XMLApplicationContext/parse()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\XMLApplicationContext.as:396]
at org.springextensions.actionscript.context.support::FlexXMLApplicationContext/parse()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\FlexXMLApplicationContext.as:214]
at org.springextensions.actionscript.context.support::XMLApplicationContext/loadNextConfigLocation()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\XMLApplicationContext.as:436]
at org.springextensions.actionscript.context.support::XMLApplicationContext/doLoad()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\XMLApplicationContext.as:295]
at org.springextensions.actionscript.context.support::AbstractApplicationContext/load()[C:\projects\tmp\spring-actionscript-core\src\main\actionscript\org\springextensions\actionscript\context\support\AbstractApplicationContext.as:253]
digging into the sources, I found that the “namespaceHandles” array of XMLObjectDefinitionsParser was empty, when parsing the xml.
Adding this call, to my setup of FlexXMLApplicationContext before call to load():
appContext.addNamespaceHandler(new ContextNamespaceHandler());
did the trick.
Actually, I cannot find any instantiation of ContextNamespaceHandler in the spring actionscript code.
Is that a bug?
November 15th, 2010 at 9:48 pm
Wow! Awesome features are added I see. Have to get my hands dirty exploring them asap! Thanks a lot!
November 22nd, 2010 at 5:59 pm
I
nice job.
But we cannot download the packages linked in “http://www.springactionscript.org/downloads/”
could you provide us an alternative?
thanks