Class PropertySourceBootstrapConfiguration
java.lang.Object
org.springframework.cloud.bootstrap.config.PropertySourceBootstrapConfiguration
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>,org.springframework.core.Ordered
@Configuration(proxyBeanMethods=false)
@EnableConfigurationProperties(PropertySourceBootstrapProperties.class)
public class PropertySourceBootstrapConfiguration
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>, org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>, org.springframework.core.Ordered
- Author:
- Dave Syer
-
Field Summary
FieldsFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintgetOrder()voidinitialize(org.springframework.context.ConfigurableApplicationContext applicationContext) voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) voidsetPropertySourceLocators(Collection<PropertySourceLocator> propertySourceLocators)
-
Field Details
-
BOOTSTRAP_PROPERTY_SOURCE_NAME
Bootstrap property source name.- See Also:
-
-
Constructor Details
-
PropertySourceBootstrapConfiguration
public PropertySourceBootstrapConfiguration()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setPropertySourceLocators
-
initialize
public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) - Specified by:
initializein interfaceorg.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
-