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
Fields Modifier and Type Field Description static StringBOOTSTRAP_PROPERTY_SOURCE_NAMEBootstrap property source name.
-
Constructor Summary
Constructors Constructor Description PropertySourceBootstrapConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetOrder()voidinitialize(org.springframework.context.ConfigurableApplicationContext applicationContext)voidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)voidsetPropertySourceLocators(Collection<PropertySourceLocator> propertySourceLocators)
-
-
-
Field Detail
-
BOOTSTRAP_PROPERTY_SOURCE_NAME
public static final String BOOTSTRAP_PROPERTY_SOURCE_NAME
Bootstrap property source name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setPropertySourceLocators
public void setPropertySourceLocators(Collection<PropertySourceLocator> propertySourceLocators)
-
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>
-
-