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

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

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

    有關spring中的factorybean的深刻理解

    Interface to be implemented by objects used within a BeanFactory that are themselves factories. If a bean implements this interface, it is used as a factory, not directly as a bean.

    NB: A bean that implements this interface cannot be used as a normal bean. A FactoryBean is defined in a bean style, but the object exposed for bean references is always the object that it creates.

    FactoryBeans can support singletons and prototypes, and can either create objects lazily on demand or eagerly on startup.

    This interface is heavily used within the framework, for example for the AOP ProxyFactoryBean or JndiObjectFactoryBean. It can be used for application components, but this is not common outside of infrastructure code.


    可以自己創建FactoryBean,這個時候的類就要當做工廠類來使用。在spring的配置文件中<ref local="factoryBean"/>調用的是getObject()方法,返回是object對象。


    posted on 2007-12-25 15:01 劉錚 閱讀(327) 評論(0)  編輯  收藏 所屬分類: Spring

    <2025年5月>
    27282930123
    45678910
    11121314151617
    18192021222324
    25262728293031
    1234567

    導航

    統計

    留言簿(1)

    文章分類(141)

    文章檔案(147)

    搜索

    最新評論

    主站蜘蛛池模板: wwwxxx亚洲| 一区二区三区亚洲| 免费观看又污又黄在线观看| 97无码免费人妻超级碰碰夜夜| 免费精品99久久国产综合精品| 久久亚洲色一区二区三区| 国产精品免费久久久久电影网| 亚洲国产主播精品极品网红| 污污污视频在线免费观看| 久久久久亚洲精品男人的天堂| 中文字幕无线码免费人妻| 亚洲乱码一区二区三区在线观看| 中文字幕免费人成乱码中国| 亚洲AV无码一区二区二三区软件| 免费观看男人吊女人视频| 亚洲永久永久永久永久永久精品| 巨波霸乳在线永久免费视频| 亚洲色偷拍区另类无码专区| 亚洲阿v天堂在线2017免费 | 国产区在线免费观看| 亚洲精品无码久久久| 久久精品成人免费网站| 亚洲丰满熟女一区二区v| 在线观看免费污视频| 一级特黄a大片免费| 久久久久亚洲Av片无码v| 黄网站色在线视频免费观看| 亚洲精品无码aⅴ中文字幕蜜桃| 免费国产在线观看| 一本色道久久88亚洲精品综合 | 久久人午夜亚洲精品无码区| 亚洲精品无码成人片在线观看| 午夜影院免费观看| 亚洲国产成人久久精品大牛影视 | 免费国产在线观看| 在线观看免费无码专区| 久久久久se色偷偷亚洲精品av| 亚洲&#228;v永久无码精品天堂久久 | 亚洲AV无码一区二区三区网址| 在线A亚洲老鸭窝天堂| 台湾一级毛片永久免费|