Spring Framework ServletContextPropertyPlaceholderConfigurer - 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 ServletContextPropertyPlaceholderConfigurer class.

This code example shows how to use the following methods:
 * were omitted, only the part matched by the asterisk would be used as key. 
 *    
 * @author Felix Gnass [fgnass at neteye dot de] 
 * @since 6.4 
 */ 
public class PropertiesPlaceholderConfigurer extends  
		ServletContextPropertyPlaceholderConfigurer { 
	 
	protected String resolvePlaceholder(String placeholder, Properties props) {	 
		int i = placeholder.indexOf('*'); 
		if (i != -1) { 
			return resolveAll(props, placeholder.substring(0, i)); 
		} 
		return super.resolvePlaceholder(placeholder, props); 
	} 
	 
	protected String resolveAll(Properties props, String match) { 
		String prefix = match; 
		int i = match.indexOf('('); 
		if (i != -1) { 
4
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java