swiz quick start

 

day 1

 

completed 1: 

Roughly know how use swiz , how to config the swiz.

swiz is almost like the spring framework :

1. import swiz > swiz-framework-v1.3.1.swc .

2. provide the beanProviders which is pretty like the ApplicationContext of spring.

3. regist the configuration file in the swiz and the swiz:config which is more function 

  on the performance of load.

4. regist the models/services/controllers which you want managed by swiz and inject in 

  somewhere in the configuration file.

5. create the models/services/controllers you want and use the instance in the container 

  (beanProviders) wherever with the use of metedata tag [Inject].

 

   

-------------------------------------------------------------------------------------------------

 

completed 2: 

  how to dispatch and handle evnets in both visual and non-visual components.

1. in visual components we can dispatch the event in any place if you like 

  as to the handle you can use the metedata tag [EventHandler(event="",properties="")]

  to tell the swiz the handle location . use the properties as the in params for

  the handler.

2. as to the non-components use [Dispatcher] to instructs swiz to inject a dispatch ,

  events dispatched via this dispatcher can trigger methods annotated with [EventHandler].

 

 

day 2 :

 

https://github.com/swiz/

http://www.adobe.com/cn/devnet/flex/articles/ioc_frameworks_print.html

http://www.martinfowler.com/articles/injection.html

difference between [Autowire] and [Inject] : inject is more like the upgrade of autowire 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值