Package org.socialmusicdiscovery.server.business.model.config

Examples of org.socialmusicdiscovery.server.business.model.config.ConfigurationParameterEntity


     *
     * @param parameters Parameter key/value pairs that should be used to initalize the configuration manager
     */
    public MemoryConfigurationManager(Map<String, String> parameters) {
        for (Map.Entry<String, String> entry : parameters.entrySet()) {
            this.parameters.put(entry.getKey(), new ConfigurationParameterEntity(entry.getKey(), null, entry.getValue()));
        }
    }
View Full Code Here


            if (key.startsWith(path)) {
                it.remove();
            }
        }
        for (ConfigurationParameter parameter : parameters) {
            this.parameters.put(parameter.getId(), new ConfigurationParameterEntity(parameter));
        }
    }
View Full Code Here

     * handled by this configuration manager.
     *
     * @param parameter Parameter which should be set
     */
    public void setParameter(ConfigurationParameter parameter) {
        this.parameters.put(parameter.getId(), new ConfigurationParameterEntity(parameter));
    }
View Full Code Here

    /**
     * @inheritDoc
     */
    @Override
    public ConfigurationParameterEntity getParameter(String id) {
        ConfigurationParameterEntity parameter = parameters.get(id);
        if (parameter != null) {
            return parameter;
        } else {
            return null;
        }
View Full Code Here

TOP

Related Classes of org.socialmusicdiscovery.server.business.model.config.ConfigurationParameterEntity

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.