src/main/java/de/hashcode/simpleconf/PropertyLoader.java
/**
	 * Reads the properties and writes them to system properties. Existing
	 * system properties are not overridden.
	 * 
	 * @param <T>
	 *            Data type for {@link PropertyLocation}
	 * @param locations
	 *            The locations from which should be read.
	 * @param data
	 *            Data for the locations
	 * @throws IOException
	 *             if there's a problem while reading the properties.
	 */
Reads the properties and writes them to system properties. Existing
system properties are not overridden.

@param 
Data type for  PropertyLocation
@param locations
The locations from which should be read.
@param data
Data for the locations
@throws IOException
if there's a problem while reading the properties.
Reads the properties and writes them to system properties . Existing system properties are not overridden . @param Data type for PropertyLocation @param locations The locations from which should be read . @param data Data for the locations @throws IOException if there ' s a problem while reading the properties .
public static <T> void loadProperties(
			@Nonnull final Collection<? extends PropertyLocation<T>> locations,
			@Nullable final T data) throws IOException {
		final Properties properties = new Properties();
		for (final PropertyLocation<T> location : locations) {
			properties.putAll(read(location, data));
		}
		if (properties.isEmpty()) {
			LOG.warning("No property file found at any possible location, not processing any properties");
		} else {
			writeToSystemProperties(properties);
		}
	}
public static < T > void loadProperties ( @ Nonnull final Collection < ? extends PropertyLocation < T > > locations , @ Nullable final T data ) throws IOException { final Properties properties = new Properties ( ) ; for ( final PropertyLocation < T > location : locations ) { properties . putAll ( read ( location , data ) ) ; } if ( properties . isEmpty ( ) ) { LOG . warning ( "No property file found at any possible location, not processing any properties" ) ; } else { writeToSystemProperties ( properties ) ; } }
Reads the properties and writes them to system properties.
Reads the properties and writes them to system properties .