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

This code example shows how to use the following methods:
	public ResourcePropertySource(String location) throws IOException {
		this(new DefaultResourceLoader().getResource(location));
	} 
 
	private ResourcePropertySource(String name, String resourceName, Map<String, Object> source) {
		super(name, source);
		this.resourceName = resourceName;
	} 
 
 
	/** 
	 * Return a potentially adapted variant of this {@link ResourcePropertySource}, 
	 * overriding the previously given (or derived) name with the specified name. 
	 * @since 4.0.4 
	 */ 
	public ResourcePropertySource withName(String name) {
		if (this.name.equals(name)) {
			return this;
		} 
		// Store the original resource name if necessary... 
5
CodeRank
This code example shows how to use the following methods: