
2006年8月24日
摘要: 傳統JavaBean的生命周期非常簡單。用關鍵字new用來實例化Bean就可以了,而Bean的生命周期在Spring中更復雜。理解Spring Bean的生命周期非常重要,因為你也許需要利用Spring提供的機會來定制Bean的創建過程。
閱讀全文
posted @
2006-08-24 23:14 knowhow|
編輯 收藏
posted @
2006-08-24 16:38 knowhow|
編輯 收藏

2006年7月30日
摘要: The reflection library gives you a very rich and elaborate toolset to write programs that manipulate Java code dynamically. This feature is heavily used in JavaBeans, the component architecture for Java (see Volume 2 for more on JavaBeans). Using reflection, Java can support tools like the ones to which users of Visual Basic have grown accustomed. In particular, when new classes are added at design or run time, rapid application development tools can dynamically inquire about the capabilities of
閱讀全文
posted @
2006-07-30 18:49 knowhow 閱讀(425) |
評論 (0) |
編輯 收藏

2006年7月22日
摘要: iBatis并不在運行期自動生成SQL語句,具體的SQL語句由程序員編寫。通過映射文件,將SQL所需的參數,以及返回的結果字段映射到指定的POJO。相對于Hibernate等"全自動"ORM而言,iBatis以SQL開發的工作量和數據庫移植性上的讓步,為系統設計提供了更大的自由空間。
閱讀全文
posted @
2006-07-22 17:50 knowhow 閱讀(485) |
評論 (1) |
編輯 收藏