随笔分类 -  java

摘要:BeanFactory的对象注册与依赖绑定方式 阅读全文
posted @ 2012-06-26 14:13 来自非洲大草原的食人虎 阅读(406) 评论(0) 推荐(0)
摘要:Hibernate3高级特性-使用过滤器Hibernate版本(hibernate-distribution-3.3.1.GA) Hibernate3 新增了对某个类或集合使用预定义的过滤器条件 (filter criteria) 的功能。过滤器条件相当于定义一个非常类似于类和各种集合上的"where"属性的约束子句,但是过滤器条件可以带参数。应用程序可以在运行时决定是否启用给定的过滤器,以及使用什么样的参数值。过滤器的用法很像数据库视图,只还过是在应用程序员中确定使用什么样的参数。摘自--http://docs.jboss.org/hibernate/core/3.6/r 阅读全文
posted @ 2011-10-14 15:04 来自非洲大草原的食人虎 阅读(2196) 评论(0) 推荐(0)
摘要:Hibernate3源码分析之hibernate.cfg.xml配置文件与SessionFactory类Hibernate版本(hibernate-distribution-3.3.1.GA) 之前的一篇文章 Hibernate3源码分析之SettingsFactory类 只是简单分析一下SettingsFactory类读取Hibernate.cfg.xml 配置文件中property元素,将其赋值给Settings类的实例。hibernate.cfg.xml配置文件中远远不止property元素,还有其它元素,哪么其它元素被解析出来后赋值给了哪些个类的实例呢??? (hibernate.cf 阅读全文
posted @ 2011-10-11 13:18 来自非洲大草原的食人虎 阅读(6117) 评论(0) 推荐(0)
摘要:Hibernate3源码分析之SettingsFactory类Hibernate版本(hibernate-distribution-3.3.1.GA)一、hibernate.cfg.xml文件的概述 使用过Hibernate的朋友对hibernate.cfg.xml这个配置文件一点也不会陌生吧,hibernate.cfg.xml之于Hibernate就相当于web.config之于asp.net,二者是密不可分的。hibernate.cfg.xml包含了一系列的属性配置,当程序运行时 会读取该文件并对其进行解析,解析出来的部分内容将会赋值给Setting类的实例。二、通过Configruati 阅读全文
posted @ 2011-09-30 20:25 来自非洲大草原的食人虎 阅读(5180) 评论(4) 推荐(4)
摘要:You use the Response to send data back to the clientThe most common methods you'll call on the response object(HttpServletResponse) are setContentType() and getWriter()Be careful-many developers assume the method is getPrintWriter(),but it's getWriter()The getWriter() method lets you do char 阅读全文
posted @ 2011-04-01 15:31 来自非洲大草原的食人虎 阅读(278) 评论(0) 推荐(0)
摘要:The HttpServlet's doGet() and doPost() methods take an HttpServletRequest and an HttpServletResponse.The service() method determines whether doGet() or doPost() runs base on the HTTP Method(GET,POST,etc.) of the HTTP request.POST requests have a body;GET requests do not,althogh GET requests can 阅读全文
posted @ 2011-03-31 18:09 来自非洲大草原的食人虎 阅读(227) 评论(0) 推荐(0)
摘要:The Container initializes a servlet by loading the class,invoking the servlet's no-arg constructor,and calling the servelt's init() method.The init() method (which the developer can override) is called only once in a servlet's life,and always before the servlet can service any client 阅读全文
posted @ 2011-03-31 17:53 来自非洲大草原的食人虎 阅读(217) 评论(0) 推荐(0)