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

This code example shows how to use the following methods:
This code example shows how to use the following methods:
		PortletApplicationContextUtils.initPortletPropertySources(getPropertySources(), servletContext, portletContext, portletConfig);
	} 
 
} 
6
CodeRank
This code example shows how to use the following methods:addLast
This code example shows how to use the following methods:
This code example shows how to use the following methods:addLast
This code example shows how to use the following methods:addFirst
        this.appDataDir = commandLineProperties.containsProperty(APP_DATA_DIR_KEY) ?
                (String) commandLineProperties.getProperty(APP_DATA_DIR_KEY) :
                appDataDir(userDataDir, appName);
 
        MutablePropertySources propertySources = this.getPropertySources();
        propertySources.addFirst(commandLineProperties);
        try { 
            propertySources.addLast(appDirProperties());
            propertySources.addLast(homeDirProperties());
            propertySources.addLast(classpathProperties());
            propertySources.addLast(defaultProperties());
        } catch (Exception ex) {
            throw new BitsquareException(ex);
        } 
    } 
 
 
    PropertySource<?> appDirProperties() throws Exception {
        String location = String.format("file:%s/bitsquare.properties", appDataDir);
        Resource resource = resourceLoader.getResource(location);

4
CodeRank
See Code Examples for Spring Framework MutablePropertySources Methods: