导图社区 Applicationcontext
这是一篇关于导图Applicationcontext的思维导图,Input Stream Source、Multipart File、Encode Resource
编辑于2022-07-26 20:54:05ApplicationContext
SimpleBeanDefinitionRegistry
Serializable
ConfigurableListableBeanFactory
BeanDefinitionRegistry
DefaultListableBeanFactory
AutowireCapableBeanFactory
AbstractAutowireCapableBeanFactory
SimpleAliasRegistry
AliasRegistry
DefaultSingletonBeanRegistry
FactoryBeanRegistrySupport
AbstractBeanFactory
SingletonBeanRegistry
ConfigurableBeanFactory
ServletContextResourcePatternResolver
PathMatchingResourcePatternResolver
常常用于应用上下文之外如ResourceArrayPropertyEditor中 理应支持所有类似”/WEB-INF/*-context.xml”这种模式的路径输入
FileSystemResourceLoader
从文件系统中加载资源
ClassRelativeResourceLoader
根据给定的class所在包或者所在包的子包下加载资源。
JOptCommandLinePropertySource(OptionSet)
SimpleCommandLinePropertySource(CommandLineArgs)
CommandLinePropertySource<T>
ServletContextPropertySource(ServletContext)
ServletConfigPropertySource(ServletConfig)
SystemEnvironmentPropertySource
ResourcePropertySource
VfsResource
TransformedResource
ServletContextResource
ServletContext
PathResource
Path
MultipartFile
MultipartFileResource
MultipartFile
InputStreamResource
InputStream
FileSystemResource
ByteArrayResource
BeanDefinitionResource
BeanDefinition
WebJarsResourceResolver
VersionResourceResolver
PathResourceResolver
CachingResourceResolver
EncodedResourceResolver
EncodedResource
AbstractResourceResolver
ResourceResolver
HttpResource
ContextResource
ClassPathResource
ClassLoader
Class
WritableResource
FileUrlResource
File
UrlResource
URL/URI
AbstractFileResolvingResource
AbstractResource
Resource
EncodedResource
Resource
InputStreamSource
输入流接口,每次调用这个方法都会得到一个新的流
PropertiesPropertySource
MapPropertySource(Map)
JndiPropertySource(JndiLocatorDelegate)
EnumerablePropertySource<T>
PropertySource<T>
PropertySource 类 设计用来存放<key,value>对象的抽象类。同时name,source都是final在初始化后不在变化
PropertySourcesPropertyResolver
AbstractPropertyResolver
StandardEnvironment
AbstractEnvironment
ConfigurableEnvironment
ConfigurablePropertyResolver
PropertyResolver
解析配置文件中的属性,负责对外提供所持有 PropertySource 属性的访问及解析
Environment
接口表示当前应用程序运行的环境。两个关键配置为:profiles和properties配置文件。属性访问通过PropertyResolver接口中相关的方法。所谓的profiles就类似于@Profile(“dev”)或者properties配置文件中的spring.profiles.active=dev。Environment通过getActiveProfiles知道当前激活那些配置文件,通过getDefaultProfiles知道那些被默认激活。
AliasRegistry
ResourceLoader
BeanFactory
The root interface for accessing a Spring bean container.
Aware
BeanNameAware
InitializingBean
FileSystemXmlApplicationContext
AbstractRefreshableApplicationContext
ClassPathXmlApplicationContext
AbstractXmlApplicationContext
AnnotationConfigApplicationContext
XmlWebApplicationContext
AnnotationConfigRegistry
Common interface for annotation config application contexts
AnnotationConfigWebApplicationContext
DefaultResourceLoader
ClassPathContextResource
BeanDefinitionRegistry
AbstractApplicationContext
GenericApplicationContext
StaticApplicationContext
StaticWebApplicationContext
AbstractRefreshableConfigApplicationContext
GenericWebApplicationContext
ThemeSource
主要用于如何定位相应的主题资源文件; 一组主题通常是一组CSS和图片的组合,比如网址导航网站常见的以颜色区分的主题。
AbstractRefreshableWebApplicationContext
ConfigurableWebApplicationContext
ResourcePatternResolver
解析带有*等通配符路径的资源文件
ApplicationEventPublisher
MessageSource
HierarchicalBeanFactory
ListableBeanFactory
EnvironmentCapable
Environment
ConfigurableApplicationContext
WebApplicationContext