Flyingis

          Talking and thinking freely !
          Flying in the world of GIS !
          隨筆 - 156, 文章 - 16, 評論 - 589, 引用 - 0
          數據加載中……

          IOC容器比較--Spring VS Pico VS Yan/Nuts

          Features? Spring? Pico? Yan/Nuts
          xml configuration
          Yes? Through Nano Container
          Yes
          Life cycle
          Singleton only
          Singleton only
          Both singleton and prototype
          Parametered and ad-hoc life cycle
          No
          No
          Through <lifecycle> tag
          Constructor Injection
          Yes Yes
          Yes
          Setter Injection
          Yes
          Yes
          Yes
          Factory Method Injection
          Yes
          Yes
          Yes
          Referencing Field
          FieldRetrievingFactoryBean
          Implement ComponentAdapter
          Through <field> tag.
          Anonymous sub-bean
          Yes No
          Yes
          Ad-hoc bean combination
          No No
          Through <sequence> or <callcc> tags
          Concise collection literal
          No
          No
          Yes
          named local bean
          No
          No
          Through <local> tag
          Bean Definition Reuse
          through "abstract" bean

          Through <function> tag
          import module
          Yes
          Yes
          Yes
          module private beans
          No
          No
          Through "export" and "hide" attribute of <module>
          Selective import by bean names
          No
          No
          Through "includes" and "excludes" attribute of <import>
          Import with namespace
          No
          No
          Through "namespace" attribute of <import>
          Singleton bean with prototype property
          Requires Cglib and bytecode generation
          ComponentAdapter combination
          Through component combination
          Dependency Injection for objects not managed by container
          Supported at the cost of Spring API dependency
          No
          Through <function> and <factory> tag
          Extensible tag library
          No. But FactoryBean is a substitute
          No
          By implementing subclasses of Nut
          Configuration unit-testable within configuration file.
          No
          No
          By using <sequence> together with <assertEqual>, <assertSame>, <if>, <unless>, <fail> etc.
          autoproxy
          Yes

          No
          Custom PropertyEditor
          Yes
          Yes
          No
          Container hierarchy
          Yes
          Yes
          Yes
          AOP support
          Both Spring AOP and AspectJ
          Via dynaop
          Any AOP solution can be plugged in. An integration package for spring AOP is provided out-of-box.
          Declarative Transactional support
          Yes
          ? No. But Spring's declarative transaction support is integrated.
          Scripting language support
          Not yet
          Nano Container
          Not yet
          原文鏈接: http://docs.codehaus.org/pages/viewpage.action?pageId=39307

          posted on 2005-12-08 21:56 Flyingis 閱讀(786) 評論(0)  編輯  收藏 所屬分類: Technology

          主站蜘蛛池模板: 福鼎市| 黑水县| 江阴市| 本溪| 禹城市| 夹江县| 新沂市| 兴文县| 泽库县| 广昌县| 彭山县| 白水县| 和硕县| 古蔺县| 剑川县| 华宁县| 泰安市| 贵港市| 广汉市| 全椒县| 阳原县| 克什克腾旗| 额尔古纳市| 东至县| 乡宁县| 资中县| 康平县| 观塘区| 浏阳市| 五常市| 张家界市| 长宁区| 宜宾县| 平乡县| 长葛市| 富顺县| 基隆市| 右玉县| 罗源县| 太和县| 祁门县|