
2006年8月24日
摘要: 傳統(tǒng)JavaBean的生命周期非常簡(jiǎn)單。用關(guān)鍵字new用來(lái)實(shí)例化Bean就可以了,而Bean的生命周期在Spring中更復(fù)雜。理解Spring Bean的生命周期非常重要,因?yàn)槟阋苍S需要利用Spring提供的機(jī)會(huì)來(lái)定制Bean的創(chuàng)建過(guò)程。
閱讀全文
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 閱讀(428) |
評(píng)論 (0) |
編輯 收藏

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