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
ConstructorsConstructorDescriptionConfigDataContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope) Deprecated.ConfigDataContextRefresher(org.springframework.context.ConfigurableApplicationContext context, RefreshScope scope, RefreshAutoConfiguration.RefreshProperties properties) -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(org.springframework.boot.context.event.ApplicationPreparedEvent event) protected voidMethods inherited from class org.springframework.cloud.context.refresh.ContextRefresher
copyEnvironment, getContext, getScope, refresh, refreshEnvironment
-
Constructor Details
-
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 Details
-
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
-