<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    gembin

    OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

    HBase, Hadoop, ZooKeeper, Cassandra

    Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

    There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

    About Me

     

    Forms of Dependency Injection

    http://en.wikipedia.org/wiki/Dependency_injection

    Martin Fowler identifies three ways in which an object can get a reference to an external module, according to the pattern used to provide the dependency:

    依照提供依賴項時使用的模式,Martin Fowler定義了三種對象可以從得到一個外部模塊引用的方式:

    • Type 1 or interface injection, in which the exported module provides an interface that its users must implement in order to get the dependencies at runtime (as introduced by Borland Delphi and followed up by C++Builder and JBuilder[citation needed]).
    • Type 2 or setter injection, in which the dependent module exposes a setter method which the framework uses to inject the dependency.
    • Type 3 or constructor injection, in which the dependencies are provided through the class constructor. This is the main form used by PicoContainer, although it also supports setter injection.
    • 類型1 接口注入,外部模塊提供一個接口,使用者必須實現此接口以在運行期得到依賴項(Borland Delphi引入,并在C++ BuilderJBuilder中繼續運用)。
    • 類型2 設置器注入,使用者暴露一個設置器方法,框架將使用此方法注入依賴項。
    • 類型3 構造器注入,依賴項通過類構造函數提供。這是PicoContainer使用的主要方式(盡管它同時也支持設置器注入)。

     

    The open source Yan Container[1] provides support for arbitrary types of injection[2] besides the common ones defined above.

    除了前列的幾種普通形式外,開源項目Yan Container還對任意形式的注入提供了支持。

     

    Existing frameworks

    現有框架

     

    Dependency injection frameworks exist for a number of platforms and languages including:

    在一些平臺和語言中都有依賴注入框架,包括:

    ActionScript

    C++

    ColdFusion

    Delphi

    Java

    Java 2 Micro Edition

    .NET

    PHP4

    PHP5

    Perl

    Python

    Ruby

    See also

    參見

     

    External links

    外部鏈接

    Retrieved from "http://en.wikipedia.org/wiki/Dependency_injection"

    Categories: Software components | Software architecture

    Hidden categories: Articles to be merged since June 2008 | Articles lacking in-text citations | All articles with unsourced statements | Articles with unsourced statements since July 2008

    posted on 2008-11-06 13:42 gembin 閱讀(718) 評論(1)  編輯  收藏 所屬分類: IoC

    評論

    # re: Forms of Dependency Injection 2009-04-26 16:37 6yuyiy

    wow gold:<a href=http://www.wowgoldbank.com/wow-gold/>wow gold</a>,wow gold website:<a href=http://www.wowgoldz.com>wow gold</a> tks  回復  更多評論   


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


    網站導航:
     

    導航

    統計

    常用鏈接

    留言簿(6)

    隨筆分類(440)

    隨筆檔案(378)

    文章檔案(6)

    新聞檔案(1)

    相冊

    收藏夾(9)

    Adobe

    Android

    AS3

    Blog-Links

    Build

    Design Pattern

    Eclipse

    Favorite Links

    Flickr

    Game Dev

    HBase

    Identity Management

    IT resources

    JEE

    Language

    OpenID

    OSGi

    SOA

    Version Control

    最新隨筆

    搜索

    積分與排名

    最新評論

    閱讀排行榜

    評論排行榜

    free counters
    主站蜘蛛池模板: 最新国产AV无码专区亚洲| 亚洲人成7777| 成人黄色免费网站| 亚洲狠狠婷婷综合久久蜜芽| 久久久精品国产亚洲成人满18免费网站 | 在线播放免费人成视频网站| 亚洲丁香色婷婷综合欲色啪| 免费人成视频在线| 你好老叔电影观看免费| 亚洲综合成人婷婷五月网址| 国产亚洲精品国看不卡| 国产成人免费高清激情视频| 成av免费大片黄在线观看| 亚洲最大的成人网站| 亚洲V无码一区二区三区四区观看 亚洲αv久久久噜噜噜噜噜 | 亚洲国产精品va在线播放 | 亚洲综合色丁香麻豆| 亚洲高清无码专区视频| 麻花传媒剧在线mv免费观看| 免费一级毛片在线播放放视频| 亚洲精品成人网站在线播放| 区三区激情福利综合中文字幕在线一区亚洲视频1 | 黄色片在线免费观看| 很黄很污的网站免费| 极品色天使在线婷婷天堂亚洲| 久久久久久亚洲Av无码精品专口| 亚洲精品A在线观看| 国产一精品一AV一免费孕妇| 国产三级在线免费| 成人免费视频一区二区| 亚洲综合精品第一页| 亚洲色欲或者高潮影院| 亚洲无线码在线一区观看| 免费一看一级毛片| 在线观看免费a∨网站| 四虎免费影院ww4164h| 日本高清不卡aⅴ免费网站| 免费看一级毛片在线观看精品视频| 亚洲一区二区三区在线观看蜜桃| 久久亚洲AV午夜福利精品一区| 亚洲毛片av日韩av无码|