public class StandardPropertiesSourceFactory implements PropertiesSourceFactory {
public List<PropertiesSource> create(String propertiesPath, List<PropertySet> propertySets, List<Property> properties) {
List<PropertiesSource> propertySources = new ArrayList<PropertiesSource>();
propertySources.add(new SystemPropertiesSource());
propertySources.add(new PropertySetPropertiesSource(propertySets));
propertySources.add(new PropertyPropertiesSource(properties));
if (StringUtils.hasText(propertiesPath)) {
propertySources.add(new FileSystemPropertiesSource(new File(propertiesPath)));