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

This code example shows how to use the following methods:
import org.springframework.core.io.support.PropertiesLoaderSupport;
 
import java.util.List;
 
 
public class PropertyListFactoryBean extends PropertiesLoaderSupport implements FactoryBean {
  @Override public Object getObject() throws Exception {
    return PropertiesHelper.segment( mergeProperties() ); 
  } 
 
  @Override public Class getObjectType() {
    return List.class;
  } 
 
  @Override public boolean isSingleton() { 
    return false; 
  } 
} 
5
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:
 * is empty.  
 * Refer to http://tersesystems.com/post/by_id/9700062 
 *  
 * @author Dapeng.Ni 
 */ 
public class NonNullPropertiesFactoryBean extends PropertiesLoaderSupport implements FactoryBean {
 
 
	private Properties properties;
 
	public Object getObject() throws IOException {
		Enumeration<Object> keys = properties.keys();
		while(keys.hasMoreElements()){
			String key = (String) keys.nextElement();
			if(StringUtils.isBlank(properties.getProperty(key))){
				properties.remove(key);
			} 
		} 
		 
		return properties;
4
CodeRank
Experience pair programming with AI  Get Codota for Java