Package org.socialmusicdiscovery.server.business.logic.config

Examples of org.socialmusicdiscovery.server.business.logic.config.MemoryConfigurationManager


    @Provides
    @Singleton
    @Named("default-value")
    public MemoryConfigurationManager provideDefaultValueMemoryConfigurationManager(ConfigurationParameterRepository configurationParameterRepository) {
        if(configurationManager==null) {
            configurationManager = new MemoryConfigurationManager();
            Properties defaultProperties = InjectHelper.instanceWithName(Properties.class, "smd-default-configuration");
            if(defaultProperties!=null) {
                List<ConfigurationParameter> parameters = new ArrayList<ConfigurationParameter>();
                for (Map.Entry<Object, Object> entry : defaultProperties.entrySet()) {
                    String property = entry.getKey().toString();
View Full Code Here


    /**
     * Get the execution parameter value of the specified execution parameter
     * @return The execution parameter value or null if it doesn't exist
     */
    protected ConfigurationContext getExecutionConfiguration() {
        return new MappedConfigurationContext(getId()+".",new MemoryConfigurationManager(executionParameters));
    }
View Full Code Here

        assert images!=null;
    }

    @Test
    public void testCRUDConfig() throws Exception {
        MemoryConfigurationManager defaultValueConfigurationManager = InjectHelper.instanceWithName(MemoryConfigurationManager.class, "default-value");
        defaultValueConfigurationManager.setParametersForPath("",new ArrayList<ConfigurationParameter>());

        ConfigurationParameter myBooleanConfig = new ConfigurationParameterEntity();
        myBooleanConfig.setId("somebooleanconfig");
        myBooleanConfig.setType(ConfigurationParameter.Type.BOOLEAN);
        myBooleanConfig.setValue("true");
View Full Code Here

TOP

Related Classes of org.socialmusicdiscovery.server.business.logic.config.MemoryConfigurationManager

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.