Spring Framework PropertySourcesPlaceholderConfigurer - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework PropertySourcesPlaceholderConfigurer class.

This code example shows how to use the following methods:setIgnoreResourceNotFound, setIgnoreUnresolvablePlaceholders, setLocations, setNullValue, setPlaceholderPrefix
        logger.debug("\n\n############################ Initializing GeoPlatform " 
                + "AsyncPropertyConfigurer with System Props : [ GP_DATA_DIR : {} - " 
                + "GP_ASYNC_FILE_PROP : {} ]\n\n", gpConfigDataDir,
                gpAsyncFileProp);
 
        PropertySourcesPlaceholderConfigurer gpAPC = new PropertySourcesPlaceholderConfigurer();
        gpAPC.setPlaceholderPrefix("gpAsyncConfigurator{");
        gpAPC.setPlaceholderSuffix("}");
        gpAPC.setNullValue("@null");
 
        gpAPC.setLocations(placeholderResourcesLoader.loadResources(gpConfigDataDir,
                gpAsyncFileProp));
        gpAPC.setIgnoreResourceNotFound(Boolean.TRUE);
        gpAPC.setIgnoreUnresolvablePlaceholders(Boolean.TRUE);
 
        return gpAPC;
    } 
 
} 
7
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
			return enigma;
		} 
 
		@Bean 
		public static PropertySourcesPlaceholderConfigurer placeholderConfigurer() {
			return new PropertySourcesPlaceholderConfigurer();
		} 
	} 
 
 
	@Autowired 
	private String enigma;
 
 
	@Test
	public void customPropertySourceConfiguredViaContextInitializer() { 
		assertEquals("foo", enigma);
	} 
 
 
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setPropertySources, setIgnoreResourceNotFound, setIgnoreUnresolvablePlaceholders
This code example shows how to use the following methods:
This code example shows how to use the following methods:setPropertySources, setIgnoreResourceNotFound, setIgnoreUnresolvablePlaceholders
    public OverrideProperties() { 
    } 
 
    @Bean 
    public static PropertySourcesPlaceholderConfigurer placeHolderConfigurer() {
        PropertySourcesPlaceholderConfigurer configurer = new PropertySourcesPlaceholderConfigurer();
        configurer.setIgnoreResourceNotFound(true);
        configurer.setIgnoreUnresolvablePlaceholders(true);
        MutablePropertySources propertySources = new MutablePropertySources();
        MockPropertySource source = new MockPropertySource()
            .withProperty("rabbitmq.host", "192.168.10.10")
            .withProperty("rabbitmq.port", "5673")
            .withProperty("rabbitmq.username", "jfw")
            .withProperty("rabbitmq.password", "jfw")
            .withProperty("rabbitmq.channel-cache-size", 100);
        propertySources.addLast(source);
        configurer.setPropertySources(propertySources);
        return configurer;
    } 
} 

6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
			return new JmsListenerContainerTestFactory(); 
		} 
 
		@Bean 
		public PropertySourcesPlaceholderConfigurer propertySourcesPlaceholderConfigurer() {
			return new PropertySourcesPlaceholderConfigurer();
		} 
	} 
 
	@Configuration 
	@EnableJms 
	static class EnableJmsCustomConfig implements JmsListenerConfigurer { 
 
		@Override 
		public void configureJmsListeners(JmsListenerEndpointRegistrar registrar) {
			registrar.setEndpointRegistry(customRegistry());
 
			// Also register a custom endpoint 
			SimpleJmsListenerEndpoint endpoint = new SimpleJmsListenerEndpoint();
			endpoint.setId("myCustomEndpointId");
6
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:
    @Value("${cas.adminList}") 
    private String adminList;
 
    @Bean 
    public static PropertySourcesPlaceholderConfigurer propertyPlaceholderConfigurer() {
        return new PropertySourcesPlaceholderConfigurer();
    } 
 
    @Bean 
    public Filter casAuthenticationFilter() { 
        final AuthenticationFilter authenticationFilter = new AuthenticationFilter();
        authenticationFilter.setCasServerLoginUrl(serverUrlPrefix + "/login");
        authenticationFilter.setServerName(serverName);
        return authenticationFilter;
    } 
 
    @Bean 
    public Filter casValidationFilter() { 
        final Cas20ProxyReceivingTicketValidationFilter casValidationFilter = new Cas20ProxyReceivingTicketValidationFilter();
        final Cas20ServiceTicketValidator ticketValidator = new Cas20ServiceTicketValidator(serverUrlPrefix);
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setIgnoreResourceNotFound, setIgnoreUnresolvablePlaceholders
This code example shows how to use the following methods:
	@Autowired 
	private Environment env; 
 
	@Bean 
	public static PropertySourcesPlaceholderConfigurer placeHolderConfigurer() { 
		return new PropertySourcesPlaceholderConfigurer(); 
	} 
 
	@Bean 
	public CacheManager cacheManager() { 
		return new ConcurrentMapCacheManager(); 
	} 
} 
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java
This code example shows how to use the following methods:setIgnoreResourceNotFound, setIgnoreUnresolvablePlaceholders
See Code Examples for Spring Framework PropertySourcesPlaceholderConfigurer Methods: