spring
2019-05-20 11:03:08 0 举报
spring源码类流程图
作者其他创作
大纲/内容
ClassLoader classLoaderprotocolResolversresourceCaches
interfaceBeanFactory
interface HierarchicalBeanFactory
classpath:
this.prepareRefresh();obtainFreshBeanFactory();prepareBeanFactory(beanFactory);postProcessBeanFactory(beanFactory);invokeBeanFactoryPostProcessors(beanFactory);registerBeanPostProcessors(beanFactory);initMessageSource();initApplicationEventMulticaster();onRefresh();registerListeners();finishBeanFactoryInitialization(beanFactory);finishRefresh();
String[] configLocationssetIdCalled
interface EnvironmentCapable
BeanNameAware
InitializingBean
abstract class AbstractRefreshableApplicationContext
interface ListableBeanFactory
abstract class AbstractXmlApplicationContext
interface ResourcePatternResolver
interface MessageSource
interface ApplicationEventPublisher
refreshBeanFactory(); create DefaultListableBeanFactory
Aware
interface ApplicationContext
interface ResourceLoader
abstract class AbstractRefreshableConfigApplicationContext
interfaceCloseable
Log loggerString idString displayNameApplicationContext parentConfigurableEnvironment environmentbeanFactoryPostProcessorslong startupDateAtomicBoolean activeAtomicBoolean closedstartupShutdownMonitorThread shutdownHookresourcePatternResolverlifecycleProcessorMessageSource messageSourceapplicationEventMulticasterapplicationListenersearlyApplicationListenersearlyApplicationEvents
class DefaultResourceLoader
classpath*:
configResources
class ClassPathXmlApplicationContext
abstract class AbstractApplicationContext
validating
interface Lifecycle
interface ConfigurableApplicationContext
allowBeanDefinitionOverridingallowCircularReferencesbeanFactorybeanFactoryMonitor
0 条评论
回复 删除
下一页