Example usage for org.springframework.context.support PropertySourcesPlaceholderConfigurer PropertySourcesPlaceholderConfigurer

List of usage examples for org.springframework.context.support PropertySourcesPlaceholderConfigurer PropertySourcesPlaceholderConfigurer

Introduction

In this page you can find the example usage for org.springframework.context.support PropertySourcesPlaceholderConfigurer PropertySourcesPlaceholderConfigurer.

Prototype

PropertySourcesPlaceholderConfigurer

Source Link

Usage

From source file:com.qpark.eip.core.model.analysis.config.ModelAnalysisPersistence.java

/**
 * The <b>static</b> {@link PropertySourcesPlaceholderConfigurer} to get the
 * properties.//w w w.  ja v a2 s.  c o m
 *
 * @return the {@link PropertySourcesPlaceholderConfigurer}.
 */
@Bean
public static PropertySourcesPlaceholderConfigurer propertyConfigInDev() {
    return new PropertySourcesPlaceholderConfigurer();
}

From source file:com.videohub.configuration.MongoConfiguration.java

@Bean
public static PropertySourcesPlaceholderConfigurer propertyConfig() {
    return new PropertySourcesPlaceholderConfigurer();
}

From source file:ru.portal.services.AppConfigTest.java

@Bean
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
    PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer();
    return configurer;
}

From source file:ru.elcor.mis.scheduler.config.AppConfig.java

@Bean
public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
    PropertySourcesPlaceholderConfigurer properties = new PropertySourcesPlaceholderConfigurer();
    Properties Props = new Properties();
    Props.setProperty("cron", "0-59/2 * * * * *");
    properties.setProperties(Props);/*from  w  ww  .ja va  2  s . c  o  m*/
    properties.setLocation(new ClassPathResource("scheduler.properties"));
    properties.setIgnoreResourceNotFound(false);

    return properties;
}

From source file:com.github.lanimall.ehcache2.AppConfig.java

@Bean
public static PropertySourcesPlaceholderConfigurer propertyConfigIn() {
    return new PropertySourcesPlaceholderConfigurer();
}

From source file:fr.norad.jaxrs.oauth2.core.tck.spring.SpringConfiguration.java

@Bean
static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
    PropertySourcesPlaceholderConfigurer props = new PropertySourcesPlaceholderConfigurer();
    Properties properties = new Properties();
    properties.setProperty("token.lifetime.second.default", "42");
    properties.setProperty("refresh_token.lifetime.second.default", "42");
    props.setProperties(properties);//  ww w.  j  a v a2  s .c  o m
    return props;
}

From source file:nl.dtls.fairdatapoint.api.config.RestApiTestContext.java

@Bean(name = "properties")
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
    return new PropertySourcesPlaceholderConfigurer();
}

From source file:cz.cvut.zuul.samples.client.config.RootContextConfig.java

@Bean
static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
    return new PropertySourcesPlaceholderConfigurer();
}

From source file:org.wso2.msf4j.spring.MSF4JSpringConfiguration.java

@Bean
public static PropertySourcesPlaceholderConfigurer propertyConfigurer() {
    PropertySourcesPlaceholderConfigurer pspc = new PropertySourcesPlaceholderConfigurer();
    pspc.setIgnoreUnresolvablePlaceholders(true);
    return pspc;/*from w ww .  ja  v a 2s.  c  o m*/
}

From source file:org.greencheek.utils.environment.propertyplaceholder.examples.spring.profile.AppBootstrap.java

@Bean
public static PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
    PropertySourcesPlaceholderConfigurer config = new PropertySourcesPlaceholderConfigurer();

    MutablePropertySources sources = new MutablePropertySources();
    sources.addFirst(new PropertiesPropertySource("p", environmentalProperties));

    config.setPropertySources(sources);/*from w  ww.  j  ava 2s  . co m*/

    return config;
}