即興的靈感

          思維是一種藝術; 藝術需要靈感。

          博客好友

          最新評論

          #

          Spring筆記之九(AOP in Spring)

               摘要: Spring IoC和 Spring AOP組合,一起形成了Spring,這樣一個有機整體,使得構建輕量級的J2EE架構成為可能,而且事實證明,非常有效。沒有Spring IoC的Spring AOP是不完善的,沒有Spring AOP的Spring IoC是不健壯的。本文研究Spring框架中的面向方面編(Aspect-Oriented Programming,AOP),進而通過例子解析如何運用Spring中的所有通知類型和切入點來實現更實用的方面和面向方面設計模式。  閱讀全文

          posted @ 2007-09-29 01:50 poetguo 閱讀(1047) | 評論 (1)編輯 收藏

          Spring筆記之八(Internationalization of spring)

               摘要: 國際化支持在實際開發中可能是最常用的特性,本文分析Spring的ApplicationContext提供國際化支持,并提供了更加強大的功能,如信息的自動裝配以及熱部署功能(配置文件修改后自動讀取,而無需重新啟動應用程序)。
          目前Spring中提供了兩個MessageSource接口的實現,即ResourceBundleMessageSource和ReloadableResourceBundleMessageSource,后者提供了無需重啟即可重新加載配置信息的特性。  閱讀全文

          posted @ 2007-09-27 01:00 poetguo 閱讀(1422) | 評論 (1)編輯 收藏

          Spring筆記之七(Types of Injection)

               摘要: 本文研究Spring的三種依賴注入實現類型——接口注入(Interface Injection)、設值注入(Setter Injection)、構造子注入(Constructor Injection)。  閱讀全文

          posted @ 2007-09-26 23:59 poetguo 閱讀(933) | 評論 (0)編輯 收藏

          Spring筆記之六(IoC Singleton)

               摘要: Spring中BeanFactory支持兩個對象模型,單例和原型。  閱讀全文

          posted @ 2007-09-26 13:22 poetguo 閱讀(4487) | 評論 (1)編輯 收藏

          Spring筆記之五(Hierarchical Bean Factory Usage)

               摘要: 本文研究Spring分層Bean Factory用法,從運行一個例子分析多層bean fantory的機制。  閱讀全文

          posted @ 2007-09-25 00:05 poetguo 閱讀(1945) | 評論 (1)編輯 收藏

          Spring筆記之四(Spring Event)

               摘要: Spring中提供一些Aware相關的接口,BeanFactoryAware、 ApplicationContextAware、ResourceLoaderAware、ServletContextAware等等,其中最常用到的是ApplicationContextAware。實現ApplicationContextAware的Bean,在Bean被初始后,將會被注入 ApplicationContext的實例。ApplicationContextAware提供了publishEvent()方法,實現Observer(觀察者)設計模式的事件傳播機,提供了針對Bean的事件傳播功能。通過Application.publishEvent方法,我們可以將事件通知系統內所有的ApplicationListener。  閱讀全文

          posted @ 2007-09-24 22:38 poetguo 閱讀(5211) | 評論 (4)編輯 收藏

          Spring筆記之三(Usage of property config)

               摘要: 本文內容演示屬性文件用法的簡單例子。
          首先定義模型接口Model,視圖接口View,以及它們實現類ImpModel,ImpView.
          Model中定義方法getString();View中定義Model實例為其屬性,在實現類ImpView中實現方法
          disPlay(),其方法體為Model實例的getString()方法,并將其打印出來。  閱讀全文

          posted @ 2007-09-24 13:51 poetguo 閱讀(1549) | 評論 (3)編輯 收藏

          Spring筆記之二(Collection Injection)

               摘要: 通過,,以及元素定義和設置與java collection類型對應的List,Set,Map,Rproperties的值。  閱讀全文

          posted @ 2007-09-24 10:23 poetguo 閱讀(1693) | 評論 (2)編輯 收藏

          Spring筆記之一(初探Spring)

               摘要: 初探Spring程序  閱讀全文

          posted @ 2007-09-24 01:31 poetguo 閱讀(1960) | 評論 (5)編輯 收藏

          僅列出標題
          共7頁: 上一頁 1 2 3 4 5 6 7 
          主站蜘蛛池模板: 平度市| 万全县| 澄城县| 汉寿县| 凤庆县| 辰溪县| 龙岩市| 丰顺县| 长阳| 百色市| 黄大仙区| 通城县| 南阳市| 南木林县| 舟曲县| 馆陶县| 上蔡县| 昌都县| 旅游| 图木舒克市| 内乡县| 昆山市| 四平市| 武安市| 名山县| 淮滨县| 开原市| 五河县| 大兴区| 延安市| 盱眙县| 民勤县| 永福县| 邳州市| 思南县| 连江县| 远安县| 工布江达县| 扬州市| 新余市| 福贡县|