<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:

    依照提供依賴項(xiàng)時(shí)使用的模式,Martin Fowler定義了三種對(duì)象可以從得到一個(gè)外部模塊引用的方式:

    • 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 接口注入,外部模塊提供一個(gè)接口,使用者必須實(shí)現(xiàn)此接口以在運(yùn)行期得到依賴項(xiàng)(Borland Delphi引入,并在C++ BuilderJBuilder中繼續(xù)運(yùn)用)。
    • 類型2 設(shè)置器注入,使用者暴露一個(gè)設(shè)置器方法,框架將使用此方法注入依賴項(xiàng)。
    • 類型3 構(gòu)造器注入,依賴項(xiàng)通過(guò)類構(gòu)造函數(shù)提供。這是PicoContainer使用的主要方式(盡管它同時(shí)也支持設(shè)置器注入)。

     

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

    除了前列的幾種普通形式外,開(kāi)源項(xiàng)目Yan Container還對(duì)任意形式的注入提供了支持。

     

    Existing frameworks

    現(xiàn)有框架

     

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

    在一些平臺(tái)和語(yǔ)言中都有依賴注入框架,包括:

    ActionScript

    C++

    ColdFusion

    Delphi

    Java

    Java 2 Micro Edition

    .NET

    PHP4

    PHP5

    Perl

    Python

    Ruby

    See also

    參見(jiàn)

     

    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 閱讀(739) 評(píng)論(1)  編輯  收藏 所屬分類: IoC

    評(píng)論

    # 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  回復(fù)  更多評(píng)論   


    只有注冊(cè)用戶登錄后才能發(fā)表評(píng)論。


    網(wǎng)站導(dǎo)航:
     

    導(dǎo)航

    統(tǒng)計(jì)

    常用鏈接

    留言簿(6)

    隨筆分類(440)

    隨筆檔案(378)

    文章檔案(6)

    新聞檔案(1)

    相冊(cè)

    收藏夾(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

    最新隨筆

    搜索

    積分與排名

    最新評(píng)論

    閱讀排行榜

    評(píng)論排行榜

    free counters
    主站蜘蛛池模板: 一级特黄a免费大片| 亚洲人成网站在线观看播放动漫| 亚洲一区二区三区在线观看网站| 1区2区3区产品乱码免费| 亚洲AV午夜福利精品一区二区 | 四虎免费久久影院| 亚洲AV女人18毛片水真多| 四虎成人免费影院网址| 亚洲人成未满十八禁网站| 好男人视频在线观看免费看片| 国产精品亚洲片在线va| 曰皮全部过程视频免费国产30分钟 | 大地影院MV在线观看视频免费| 亚洲人成影院在线无码按摩店| a级成人毛片免费图片| 亚洲国产美国国产综合一区二区| 97视频免费观看2区| 亚洲综合久久精品无码色欲| 情侣视频精品免费的国产| 黄色三级三级三级免费看| 国产成人综合亚洲亚洲国产第一页 | 一级毛片在线播放免费| 亚洲精品无码乱码成人| 一区二区三区福利视频免费观看| 亚洲冬月枫中文字幕在线看| 在线视频免费观看www动漫| 男女猛烈激情xx00免费视频| 亚洲人成影院在线无码按摩店| 免费播放一区二区三区| 亚洲色精品三区二区一区| 亚洲第一区精品观看| 久久大香伊焦在人线免费 | 人妻免费久久久久久久了| 国产成人亚洲精品青草天美| 日本免费一区二区在线观看| 亚洲国产欧美日韩精品一区二区三区| 亚洲国产成人久久精品99| 热re99久久6国产精品免费| 亚洲熟妇少妇任你躁在线观看| 亚洲无码视频在线| 91网站免费观看|