没有任何数据可供显示
| 开源项目社区 | 当前位置 : |
|
| www.trustie.net/open_source_projects | 主页 > 开源项目社区 > smartypants-ioc |
|
smartypants-ioc
|
| 1 | 0 | 38 |
| 贡献者 | 讨论 | 代码提交 |
SmartyPants IOCWelcomeWelcome to the main repository for SmartyPants IOC, which is a dependency injection framework designed for use with Adobe Flex.
Why SmartyPants?There are a few IOC frameworks around at the moment: Prana (now Spring Actionscript) was probably the first serious DI framework for Flex to get much notice. There's also Swiz, and others. What sets Smartypants apart from these frameworks?
The competition is (mostly) inspired by Spring, whereas SmartyPants is inspired by Guice. This is simply my preference, it may or may not be yours. SmartyPants-IOC is just for dependency injection. You may use any application framework you please. I recommend RobotLegs AS3. It does things the way I like, and you can even replace SmartyPants with another injector if you need to. SmartyPants defines the bindings / application structure via ActionScript code, not via XML. Again, this is a stylistic preference. Put your run-time configuration in configuration files, not in your application structure. Injection requests are specified with annotations, like Guice, Spring 2(.5?), and Swiz. You can also use a similar DSL to request instances from the injector. SmartyPants provides live injection - think "the love child of regular dependency injection and Flex data-binding" Getting startedDownload the .swc file from here, or checkout the code via SVN. The project is young, and the docs are growing, but grow they will! Check out the wiki here, or join the discussion group if you'd like to know more. The !ASDocs are currently offline but will return very shortly!
A simple example
标签:
