springApplicationListener类图
2016-08-18 10:25:28 0 举报
作者其他创作
大纲/内容
PropertiesPropertySource
implements
ConversionService
implement
FormattingConversionService
addFormatter(Formatter<?> formatter)
MutablePropertySources
addFirst(PropertySource<?> propertySource)
extends
ApplicationStartedEvent
ConfigFileApplicationListener
onApplicationEvent(ApplicationEvent event)
AbstractApplicationEventMulticaster
AbstractEnvironment
MutablePropertySources propertySources
customizePropertySources(MutablePropertySources propertySources)
LoggingApplicationListener
onApplicationEvent(E event)
abstract class PropertySource
name T source
T getSource()
GenericConversionService
MapPropertySource
Object getProperty(String name)
SpringApplicationRunListeners
starting()environmentPrepared()contextPrepared()contextLoaded()
Environment
getActiveProfiles():获取spring.profiles.active变量
StubPropertySource
BootstrapApplicationListener
use
GenericApplicationListener
supportsEventType
extend
ApplicationReadyEvent
SpringApplicationRunListener
ApplicationContextInitializedEvent
ConfigurableReactiveWebEnvironment
ConfigurableEnvironment
setActiveProfiles(String... profiles)getSystemProperties()
EnumerablePropertySource
String[] getPropertyNames()containsProperty(String name)
EventListener
SpringApplication
run()
PropertyResolver
getProperty(String key)
ApplicationStartingEvent
ConfigurableConversionService
ApplicationConversionService
getSharedInstance()
ApplicationFailedEvent
EmbeddedValueResolverAware
setEmbeddedValueResolver(StringValueResolver resolver)
BackgroundPreinitializer自动autoConfigure
Aware
ApplicationEnvironmentPreparedEvent
SystemEnvironmentPropertySource
配置spring boot基本都会用到的convert
ConfigurationPropertySourcesPropertySource
ApplicationPreparedEvent
StandardReactiveWebEnvironment
LiquibaseServiceLocatorApplicationListener
StandardEnvironment
DelegatingApplicationListener
SimpleApplicationEventMulticaster事件广播器
FormatterRegistry
ConverterRegistry
ConfigurablePropertyResolver
setPlaceholderPrefix(String placeholderPrefix)setPlaceholderSuffix(String placeholderSuffix)
EventPublishingRunListener
ApplicationEventMulticaster
ApplicationListener<? extend ApplicationEvent>
StandardServletEnvironment
0 条评论
下一页