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 Details

    • BOOTSTRAP_PROPERTY_SOURCE_NAME

      public static final String BOOTSTRAP_PROPERTY_SOURCE_NAME
      Bootstrap property source name.
      See Also:
  • Constructor Details

    • PropertySourceBootstrapConfiguration

      public PropertySourceBootstrapConfiguration()
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • setPropertySourceLocators

      public void setPropertySourceLocators(Collection<PropertySourceLocator> propertySourceLocators)
    • initialize

      public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
      Specified by:
      initialize in interface org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>
    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>