云自无心水自闲

天平山上白云泉,云自无心水自闲。何必奔冲山下去,更添波浪向人间!
posts - 288, comments - 524, trackbacks - 0, articles - 6
  BlogJava :: 首页 :: 新随笔 :: 联系 :: 聚合  :: 管理

整理了一下Cairngorm 2.1版本的新变化

Posted on 2007-04-10 19:48 云自无心水自闲 阅读(1376) 评论(0)  编辑  收藏 所属分类: FlexCairngormFlex2

1. Caringorm2.1的包中增加了完整的ASDoc文档

2. 增加Locale,错误信息的国际化的处理。
添加了一个Properties文件,
添加了com.adobe.cairngorm.CairngormMessageCodes和com.adobe.cairngorm.CairngormError两个类,其中CairngormMessageCodes用于定义Properties文件中的键值,而CairngormError封装了Error,在应用执行的过程不再直接抛出Error,而抛出一个CairngormError,其中带一个参数就是MessageCode,根据MessageCode到Properties文件中取出相应的消息。

3. 在business中,添加了一个IServiceLocator的接口
ServiceLocator实现IServiceLocator接口,相比以前增加了以下几个方法:
a、public function getRemoteObject( serviceId : String ) : RemoteObject // Return the RemoteObject for the given service id.
b、public function getHTTPService( serviceId : String ) : HTTPService // Return the HTTPService for the given service id.
c、public function getWebService( serviceId : String ) : WebService // Return the WebService for the given service id.
d、public function getConsumer( serviceId : String ) : Consumer  // Return the message Consumer for the given service id.
e、public function getProducer( serviceId : String ) : Producer // Return the message Produce for the given service id.
f、public function getDataService( serviceId : String ) : DataService // Return the DataService for the given service id.
g、public function setCredentials( username : String, password : String ) : void // Set the credentials for all registered services. Note that services that use a proxy or a third-party adapter to a remote endpoint will

原来的getService和getInvokerService方法已经废弃,改为了getRemoteObject

4. 在Command中,增加了ICommand接口,原来的Command接口继承ICommand

5. 在VO中,增加了IValueObject接口,原来的ValueObject继承IValueObject接口

上面添加的几个接口,除了IServiceLocator相较2.0版本有了较大的变化,增加了一些方法,其他的几个接口,依我所见,纯粹是换了名字而已。

 




只有注册用户登录后才能发表评论。


网站导航: