Package org.springframework.context.support

Examples of org.springframework.context.support.PropertySourcesPlaceholderConfigurer


    return new TestBean(this.name);
  }

  @Bean
  public PropertySourcesPlaceholderConfigurer ppc() {
    return new PropertySourcesPlaceholderConfigurer();
  }
View Full Code Here


      return new JmsListenerContainerTestFactory();
    }

    @Bean
    public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
      return new PropertySourcesPlaceholderConfigurer();
    }
View Full Code Here

  }

  private static PropertySourcesPlaceholderConfigurer placeHolderConfigurer(final String profile, final int order) throws IOException {
    final String propertyClasspath = "classpath*:/**/*-" + profile + ".properties";
    final Resource[] resources = new PathMatchingResourcePatternResolver().getResources(propertyClasspath);
    final PropertySourcesPlaceholderConfigurer propertyConfigurer = new PropertySourcesPlaceholderConfigurer();
    propertyConfigurer.setLocations(resources);
    propertyConfigurer.setLocalOverride(TRUE);
    propertyConfigurer.setIgnoreUnresolvablePlaceholders(TRUE);
    propertyConfigurer.setOrder(order);
    return propertyConfigurer;
  }
View Full Code Here

      return enigma;
    }

    @Bean
    public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
      return new PropertySourcesPlaceholderConfigurer();
    }
View Full Code Here

        contentDao.setSessionFactory(sessionFactory);
        return contentDao;
    }
    @Bean
    public static PropertySourcesPlaceholderConfigurer propertyPlaceHolderConfigurer() {
        return new PropertySourcesPlaceholderConfigurer();
    }
View Full Code Here

@PropertySource("classpath:application.properties")
public class PropertyConfig {

    @Bean
    public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
        return new PropertySourcesPlaceholderConfigurer();
    }
View Full Code Here

  }
 
  @Bean
  public static PropertySourcesPlaceholderConfigurer placeHolderConfigurer()
  {
    return new PropertySourcesPlaceholderConfigurer();
  }
View Full Code Here

  private Environment env;

  @Bean
  public static PropertySourcesPlaceholderConfigurer placeHolderConfigurer()
  {
    return new PropertySourcesPlaceholderConfigurer();
  }
View Full Code Here

  private Environment env;

  @Bean
  public static PropertySourcesPlaceholderConfigurer placeHolderConfigurer()
  {
    return new PropertySourcesPlaceholderConfigurer();
  }
View Full Code Here

        propertyConfigurerPresent = true;
        break;
      }
    }
    if (!propertyConfigurerPresent) {
      PropertySourcesPlaceholderConfigurer placeholderConfigurer = new PropertySourcesPlaceholderConfigurer();
      placeholderConfigurer.setEnvironment(context.getEnvironment());
      context.addBeanFactoryPostProcessor(placeholderConfigurer);
    }
    context.setId(this.toString());
    context.refresh();
  }
View Full Code Here

TOP

Related Classes of org.springframework.context.support.PropertySourcesPlaceholderConfigurer

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.