BeanFactory_Models
2017-06-09 23:19:12 0 举报
java Spring
作者其他创作
大纲/内容
ResourceLoader
Simple-AliasRegistry
Listable-*
Default-ResourceLoader
ClassLoader;
DefaultSingleton-BeanRegistry
Abstract-*
ReaderContext
Resource;ProblemReporter;ReaderEventListener;SourceExtractor;
FactoryBeanRegistrySupport
Abstract-AutowireCapable-*
PropertyResolver
ServletContext-ResourcePatternResolver
Hierarchical-*
Configurable-*
FileSystem-ResourceLoader
FileSystemResource
AliasRegistry
XmlBeanDefinitionReader
Constants;int validationMode;boolean namespaceAware;DocumentLoader;EntityResolver;NamespaceHandlerResolver;XmlValidationModeDetector;ReaderEventListener;SourceExtractor;ErrorHandler;ProblemReporter;Class documentReaderClass;[DefaultBeanDefinitionDocumentReader.class]ThreadLocalSetresourcesCurrentlyBeingLoaded;
PathMatching-ResourcePatternResolver
AutowireCapable-*
Configurable-Listable-*
Singleton-BeanRegistry
EnvironmentCapable
getEnvironment();
public PathMatchingResourcePatternResolver() { this.resourceLoader = new DefaultResourceLoader();}public PathMatchingResourcePatternResolver(ResourceLoader ) { this.resourceLoader = resourceLoader;}public PathMatchingResourcePatternResolver(ClassLoader) { this.resourceLoader = new DefaultResourceLoader(classLoader);}
Resource
BeanDefinitionReader
BeanFactory只负责定义如何访问“容器管理的Bean”的方法。各个BeanFactory的实现类,负责具体Bean的注册和管理工作。(实现类由于implement了BeanDefinitionRegistry接口所以可以进行注册工作)
Default-Listable-*
Environment
BeanFactory
AbstractBeanDefinitionReader
BeanDefinitionRegistry;Environment environment;ClassLoader beanClassLoader;ResourceLoader;BeanNameGenerator;[new DefaultBeanNameGenerator()]
UrlResource
ByteArrayResource
InputStreamSource
XmlReaderContext
XmlBeanDefinitionReader reader;NamespaceHandlerResolver;
批量查找的ResourceLoader
ClassPathResource
InputStreamResource
Resource getResource(String location);ClassLoader getClassLoader();
BeanDefinitionRegistry
DefaultBeanDefinitionDocumentReader
ResourcePatternResolver
Resource[] getResources(String locationPattern);
BeanDefinitionDocumentReader
收藏
收藏
0 条评论
下一页