Class ConfigDataContextRefresher
- java.lang.Object
-
- org.springframework.cloud.context.refresh.ContextRefresher
-
- org.springframework.cloud.context.refresh.ConfigDataContextRefresher
-
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
public class ConfigDataContextRefresher extends ContextRefresher implements org.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
- Author:
- Dave Syer, Venil Noronha
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.springframework.cloud.context.refresh.ContextRefresher
ContextRefresher.Empty
-
-
Field Summary
-
Fields inherited from class org.springframework.cloud.context.refresh.ContextRefresher
additionalPropertySourcesToRetain, DEFAULT_PROPERTY_SOURCES, logger, REFRESH_ARGS_PROPERTY_SOURCE, standardSources
-
-
Constructor Summary
Constructors Constructor Description ConfigDataContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope)Deprecated.ConfigDataContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope, RefreshAutoConfiguration.RefreshProperties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonApplicationEvent(org.springframework.boot.context.event.ApplicationPreparedEvent event)protected voidupdateEnvironment()-
Methods inherited from class org.springframework.cloud.context.refresh.ContextRefresher
copyEnvironment, getContext, getScope, refresh, refreshEnvironment
-
-
-
-
Constructor Detail
-
ConfigDataContextRefresher
@Deprecated public ConfigDataContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope)
Deprecated.
-
ConfigDataContextRefresher
public ConfigDataContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope, RefreshAutoConfiguration.RefreshProperties properties)
-
-
Method Detail
-
onApplicationEvent
public void onApplicationEvent(org.springframework.boot.context.event.ApplicationPreparedEvent event)
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.boot.context.event.ApplicationPreparedEvent>
-
updateEnvironment
protected void updateEnvironment()
- Specified by:
updateEnvironmentin classContextRefresher
-
-