Package de.novanic.eventservice.config.loader

Examples of de.novanic.eventservice.config.loader.DefaultConfigurationLoader


     * Initializes and registers the pre-definied ConfigurationLoaders ({@link de.novanic.eventservice.config.loader.ConfigurationLoader}).
     * See the class description of {@link de.novanic.eventservice.config.EventServiceConfigurationFactory} for more information.
     */
    private void initConfigurationLoaders() {
        replaceConfigurationLoader(ConfigLevelFactory.DEFAULT, new PropertyConfigurationLoader());
        replaceConfigurationLoader(ConfigLevelFactory.HIGHEST, new DefaultConfigurationLoader());
    }
View Full Code Here


     * The configuration will be enriched with default values, when no values are contained for the parameters.
     * @param aConfiguration configuration to enrich
     * @return the enriched configuration
     */
    private EventServiceConfiguration enrich(EventServiceConfiguration aConfiguration) {
        final EventServiceConfiguration theDefaultConfiguration =  new DefaultConfigurationLoader().load();
        final Map<ConfigParameter, Object> theDefaultConfigMap = theDefaultConfiguration.getConfigMap();

        for(Map.Entry<ConfigParameter, Object> theConfigEntry: aConfiguration.getConfigMap().entrySet()) {
            Object theValue = theConfigEntry.getValue();
            if(theValue == null) {
View Full Code Here

TOP

Related Classes of de.novanic.eventservice.config.loader.DefaultConfigurationLoader

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.