虛掩的門

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            10 Posts :: 23 Stories :: 5 Comments :: 0 Trackbacks

          JMS -- Java Messaging System
          JMX -- Java Management Extension
          JMX allows you to remote access other application from within your application. Imagine a local Java application calling a remote server to start jobs, getting information or do what ever you like.? JMX allows you to connect your application between multiple servers across the Internet or a LAN.

          AOP -- Aspect Oriented Programming and Inversion of Control
          Cross Cutting Concerns -- 橫切關注點
          什么是面向方面編程?

            面向對象的分析和設計引入了繼承、抽象和多態等概念,由此為我們提供了降低軟件復雜性的工具。但是,開發人員在軟件設計過程中仍然經常會面對無法用面向對象軟件開發技術輕易解決的問題。這些問題之一就是如何處理應用程序中的橫切關注點(Cross-cutting concerns)。

          橫切關注點

            關注點就是設計人員感興趣的某一概念或區域。例如,在一個訂貨系統中,核心關注點可能是訂單處理和生產,而系統關注點可能是事務處理和安全管理。

            橫切關注點是影響多個類或模塊的關注點,即未能很好地局部化和模塊化的關注點。

            橫切關注點的表現有:

            ·代碼糾結——當一個模塊或代碼段同時管理多個關注點時發生這種情況。

            ·代碼分散——當一個關注點分布在許多模塊中并且未能很好地局部化和模塊化時發生這種情況。

            這些現象會從幾個方面影響軟件;例如,它們會導致軟件難以維護和重用,并且難以編寫和理解。

          關注點的隔離

            面向方面編程試圖通過引入“關注點的隔離”這一概念來解決這些問題。采用這一概念,可以以一種模塊化而且適當局部化的方式實現關注點。AOP解決這個問題的辦法是在設計空間中增加額外一維,并且引入了一些構造,這些構造使我們能夠定義橫切關注點,將它們轉移進新的維,并且以模塊化方式將它們打包。

          The rest is needed but hhmm.. do I need the rest here? It makes the code difficult to read and even more difficult to test.This is where Aspect Oriented Programming comes on the scene.(on the scene出現, 到場, 在場)

          Spring allows you to use so-called(adj.所謂的, 號稱的) POJO (Plain Old Java Objects) for your domain classes
          (domain class = e.g. a class Book representing a entity book) or your business logic. This will keep your code clean and easily to understand.

          This is true to some extend (in some measure – to some extend or degree在某種程度上:His failure is in some measure due to lack of confidence.她的失敗在某種程度上是由于缺乏信心。in great/large measure在很大的程度上)? but in my opinion at least the user should not see a Java stack trace from an exception when using the application. 
          mediocre (adj. 普普通通的) developers as me
          This is by far too much.
          (by far 最,顯然:到達極為明顯的程度:到目前為止。
          She is by far the best executive in the company.
          她目前是公司中最為優秀的決策人)
          posted on 2006-09-08 10:22 Hardy虛掩的門 閱讀(147) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 久治县| 廉江市| 西乌珠穆沁旗| 历史| 闵行区| 长寿区| 闸北区| 昆山市| 安达市| 奇台县| 靖州| 南昌县| 湖南省| 柘城县| 金门县| 漳平市| 鄯善县| 当阳市| 南靖县| 永宁县| 西宁市| 仁怀市| 永兴县| 湄潭县| 台安县| 辽源市| 镇巴县| 陇西县| 崇义县| 清苑县| 鄂州市| 神农架林区| 周宁县| 屏东市| 九龙县| 班戈县| 尚义县| 佳木斯市| 即墨市| 五指山市| 太白县|