List of usage examples for java.util Properties values
@Override
public Collection<Object> values()
From source file:uk.ac.sanger.cgp.dbcon.util.Settings.java
protected static List getConfigLocationsFromPropertiesFile() { Resource resource = new ClasspathResource(PROPERTIES_LOCATION); InputStream resourceInputStream = null; try {/*from w w w . j a v a 2s .c o m*/ resourceInputStream = resource.getInputStream(); } catch (DbConException e) { return Collections.EMPTY_LIST; } Properties props = new Properties(); try { props.load(resourceInputStream); } catch (IOException e) { throw new DbConException("Could not load properties from " + PROPERTIES_LOCATION, e); } finally { InputOutputUtils.closeQuietly(resourceInputStream); } return new ArrayList(props.values()); }