论坛首页 Java企业应用论坛

Spring Web 应用之Web ApplicationContext体系结构

浏览 4368 次
精华帖 (0) :: 良好帖 (1) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2011-04-24   最后修改:2011-04-26

 

Spring web的应用为XmlWebApplicationContext,它的主要功能是适应Web应用,如国际化资源加载,配置资源的读取,事件等。在其内部还才真正包含了一个核心的BeanFactory,可以说有闭月羞花之容,倾国倾城之貌。总之解释为“金屋藏娇”

public abstract class AbstractRefreshableApplicationContext extends AbstractApplicationContext {
//属性...
//其他方法...
/**
	 * 为上下文创建一个内部BeanFactory工厂
	 * Create an internal bean factory for this context.
	 * Called for each {@link #refresh()} attempt.
	 * <p>The default implementation creates a
	 * {@link org.springframework.beans.factory.support.DefaultListableBeanFactory}
	 * with the {@link #getInternalParentBeanFactory() internal bean factory} of this
	 * context's parent as parent bean factory. Can be overridden in subclasses,
	 * for example to customize DefaultListableBeanFactory's settings.
	 * @return the bean factory for this context
	 * @see org.springframework.beans.factory.support.DefaultListableBeanFactory#setAllowBeanDefinitionOverriding
	 * @see org.springframework.beans.factory.support.DefaultListableBeanFactory#setAllowEagerClassLoading
	 * @see org.springframework.beans.factory.support.DefaultListableBeanFactory#setAllowCircularReferences
	 * @see org.springframework.beans.factory.support.DefaultListableBeanFactory#setAllowRawInjectionDespiteWrapping
	 */
	protected DefaultListableBeanFactory createBeanFactory() {
		return new DefaultListableBeanFactory(getInternalParentBeanFactory());
	}
//其他方法...
}

 DefaultListableBeanFactory 现在目睹阿娇之倾国倾城之容:

欢迎大家指导意见,会进行后续更新,请大家关注。

 

   发表时间:2011-04-25  
呵呵

我看到了 我经常用的 WebApplicationContext
0 请登录后投票
   发表时间:2011-04-26  
一目了然, 不错!
0 请登录后投票
   发表时间:2011-04-26  
说实话  spring这么搞 不只是他设计上的高明,商业上也是很高明的   
0 请登录后投票
   发表时间:2011-04-26  
tterry 写道
说实话  spring这么搞 不只是他设计上的高明,商业上也是很高明的   

什么叫:商业上也是很高明

怎么个高明法。
0 请登录后投票
   发表时间:2011-04-26  
这个是类层次结构图吧,能把时序图画出来更好
0 请登录后投票
   发表时间:2011-04-26  
请问下 这个图是用什么工具画的啊?
0 请登录后投票
   发表时间:2011-04-26  
zwt2001267 写道
这个是类层次结构图吧,能把时序图画出来更好


嗯 在学习中,后续会更新
0 请登录后投票
   发表时间:2011-04-26  
ramus 写道
请问下 这个图是用什么工具画的啊?


楚凡 UML的工具
0 请登录后投票
   发表时间:2011-04-26  
不错 !很清楚。
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics