云自無心水自閑

          天平山上白云泉,云自無心水自閑。何必奔沖山下去,更添波浪向人間!
          posts - 288, comments - 524, trackbacks - 0, articles - 6
            BlogJava :: 首頁 :: 新隨筆 :: 聯(lián)系 :: 聚合  :: 管理

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

          Posted on 2007-04-10 19:48 云自無心水自閑 閱讀(1397) 評論(0)  編輯  收藏 所屬分類: Flex 、Cairngorm 、Flex2

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

          2. 增加Locale,錯誤信息的國際化的處理。
          添加了一個Properties文件,
          添加了com.adobe.cairngorm.CairngormMessageCodes和com.adobe.cairngorm.CairngormError兩個類,其中CairngormMessageCodes用于定義Properties文件中的鍵值,而CairngormError封裝了Error,在應(yīng)用執(zhí)行的過程不再直接拋出Error,而拋出一個CairngormError,其中帶一個參數(shù)就是MessageCode,根據(jù)MessageCode到Properties文件中取出相應(yīng)的消息。

          3. 在business中,添加了一個IServiceLocator的接口
          ServiceLocator實(shí)現(xiàn)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方法已經(jīng)廢棄,改為了getRemoteObject

          4. 在Command中,增加了ICommand接口,原來的Command接口繼承ICommand

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

          上面添加的幾個接口,除了IServiceLocator相較2.0版本有了較大的變化,增加了一些方法,其他的幾個接口,依我所見,純粹是換了名字而已。

           



          主站蜘蛛池模板: 西乌珠穆沁旗| 山阳县| 西华县| 伊金霍洛旗| 香港 | 舞阳县| 得荣县| 军事| 横峰县| 甘泉县| 平果县| 永和县| 长汀县| 黎川县| 泰和县| 慈利县| 江安县| 金塔县| 昌平区| 商南县| 炉霍县| 梁山县| 松溪县| 保亭| 西平县| 文安县| 仁布县| 顺昌县| 迭部县| 原阳县| 和顺县| 惠东县| 长岛县| 比如县| 曲阳县| 信阳市| 子长县| 柯坪县| 辽中县| 汾西县| 五寨县|