Examples of ConfigurationModule


Examples of io.airlift.configuration.ConfigurationModule

                .put("PumaReadService.thrift.client.socks-proxy", proxy.toString())
                .build();

        Injector injector = Guice.createInjector(
                Stage.PRODUCTION,
                new ConfigurationModule(new ConfigurationFactory(configMap)),
                new ThriftCodecModule(),
                new ThriftClientModule(),
                new Module() {
                    @Override
                    public void configure(Binder binder)
View Full Code Here

Examples of io.airlift.configuration.ConfigurationModule

        if (config.displayUsage) {
            jCommander.usage();
        } else {
            injector = Guice.createInjector(
                    Stage.PRODUCTION,
                    new ConfigurationModule(new ConfigurationFactory(ImmutableMap.<String, String>of())),
                    new LifeCycleModule(),
                    new ThriftCodecModule(),
                    new ThriftClientModule(),
                    new Module()
                    {
View Full Code Here

Examples of org.nnsoft.guice.rocoto.configuration.ConfigurationModule

      this.resolved = checkNotNull(resolved, "resolved");
   }

   @Override
   protected void configure() {
      install(Rocoto.expandVariables(new ConfigurationModule() {

         @Override
         protected void bindConfigurations() {
            bindProperties(resolved);
         }
View Full Code Here

Examples of org.nnsoft.guice.rocoto.configuration.ConfigurationModule

*/
@Test(groups = "unit")
public class BindInstantiateVAppTemplateParamsToXmlPayloadTest extends BasePayloadTest {
   Injector createInjector(final URI vAppTemplate, final VAppTemplate value) {

      return Guice.createInjector(Rocoto.expandVariables(new ConfigurationModule() {

         @Provides
         @Singleton
         @Network
         protected Function<VAppTemplate, String> templateToDefaultNetworkName() {
View Full Code Here

Examples of org.nnsoft.guice.rocoto.configuration.ConfigurationModule

      this.resolved = checkNotNull(resolved, "resolved");
   }

   @Override
   protected void configure() {
      install(Rocoto.expandVariables(new ConfigurationModule() {

         @Override
         protected void bindConfigurations() {
            bindProperties(resolved);
         }
View Full Code Here

Examples of org.nnsoft.guice.rocoto.configuration.ConfigurationModule

*/
@Test(groups = "unit")
public class BindInstantiateVAppTemplateParamsToXmlPayloadTest extends BasePayloadTest {
   Injector createInjector(final URI vAppTemplate, final VAppTemplate value) {

      return Guice.createInjector(Rocoto.expandVariables(new ConfigurationModule() {

         @Provides
         @Singleton
         @Network
         protected Function<VAppTemplate, String> templateToDefaultNetworkName() {
View Full Code Here

Examples of org.nnsoft.guice.rocoto.configuration.ConfigurationModule

      this.resolved = checkNotNull(resolved, "resolved");
   }

   @Override
   protected void configure() {
      install(Rocoto.expandVariables(new ConfigurationModule() {

         @Override
         protected void bindConfigurations() {
            bindProperties(resolved);
         }
View Full Code Here

Examples of org.platformlayer.config.ConfigurationModule

    Properties properties = options.getConfigurationProperties();
    ConfigurationImpl configuration = ConfigurationImpl.from(new File("."), properties);

    List<Module> modules = Lists.newArrayList();

    modules.add(new ConfigurationModule(configuration));
    modules.add(new KeystoneJdbcModule());
    modules.add(new NullMetricsModule());

    this.injector = Guice.createInjector(modules);
  }
View Full Code Here

Examples of org.platformlayer.config.ConfigurationModule

      Extensions extensions = new Extensions(configuration, discovery);

      List<Module> modules = Lists.newArrayList();
      modules.add(new NullMetricsModule());
      modules.add(new GuiceXaasConfig(configuration));
      modules.add(new ConfigurationModule(configuration));
      modules.add(new CacheModule());
      modules.add(new JdbcGuiceModule());
      modules.add(new PlatformLayerServletModule(extensions));
      modules.add(new PlatformlayerValidationModule());
View Full Code Here

Examples of org.platformlayer.config.ConfigurationModule

  @Inject
  MetricReporter metricReporter;

  public static void main(String[] args) throws Exception {
    List<Module> modules = Lists.newArrayList();
    modules.add(new ConfigurationModule());
    modules.add(new CacheModule());
    modules.add(new GuiceAuthenticationConfig());
    modules.add(new KeystoneJdbcModule());
    modules.add(new KeystoneOpsSystemModule());
    modules.add(new CodahaleMetricsModule());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.