Package org.springframework.boot.context.config

Examples of org.springframework.boot.context.config.ConfigFileApplicationListener$Loader


   * {@link ConfigFileApplicationListener}.
   */
  private ConfigurableEnvironment loadPropertySources(final String searchLocation, final String baseName) {
    final ConfigurableEnvironment environment = new StandardEnvironment();
    environment.merge(parentEnvironment);
    new ConfigFileApplicationListener() {

      public void apply() {
        setSearchLocations(searchLocation);
        // We'd like to do 'setSearchNames(baseName)', but the environment property
        // has strong precedence and is already set for XD_CONFIG_NAME.
View Full Code Here


public class ConfigFileApplicationContextInitializer implements
    ApplicationContextInitializer<ConfigurableApplicationContext> {

  @Override
  public void initialize(final ConfigurableApplicationContext applicationContext) {
    new ConfigFileApplicationListener() {
      public void apply() {
        addPropertySources(applicationContext.getEnvironment(),
            applicationContext);
        addPostProcessors(applicationContext);
      }
View Full Code Here

TOP

Related Classes of org.springframework.boot.context.config.ConfigFileApplicationListener$Loader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.