Package io.airlift.configuration

Examples of io.airlift.configuration.ConfigurationValidator


                configurationAwareModule.setConfigurationFactory(configurationFactory);
            }
        }

        // Validate configuration
        ConfigurationValidator configurationValidator = new ConfigurationValidator(configurationFactory, warningsMonitor);
        List<Message> messages = configurationValidator.validate(modules);

        // at this point all config file properties should be used
        // so we can calculate the unused properties
        final TreeMap<String, String> unusedProperties = Maps.newTreeMap();
        unusedProperties.putAll(requiredProperties);
View Full Code Here


    };
    Guice.createInjector
      (
        Stage.PRODUCTION,
        new ConfigurationModule(cf),
        new ValidationErrorModule(new ConfigurationValidator(cf, null).validate(exampleModule)),
        new LifeCycleModule(),
        exampleModule,
        new NiftyModule() {
          @Override
          protected void configureNifty() {
View Full Code Here

                binder().bind(NiftyBootstrap.class).in(Singleton.class);
            }
        };
        Guice.createInjector(Stage.PRODUCTION,
                             new ConfigurationModule(cf),
                             new ValidationErrorModule(new ConfigurationValidator(cf, null).validate(exampleModule)),
                             new LifeCycleModule(),
                             exampleModule,
                             new NiftyModule()
                             {
                                 @Override
View Full Code Here

TOP

Related Classes of io.airlift.configuration.ConfigurationValidator

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.