Posted on 2007-04-10 19:48
云自無心水自閑 閱讀(1401)
評論(0) 編輯 收藏 所屬分類:
Flex 、
Cairngorm 、
Flex2
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版本有了較大的變化,增加了一些方法,其他的幾個接口,依我所見,純粹是換了名字而已。