Examples of ForgeServiceModule


Examples of com.puppetlabs.geppetto.forge.impl.ForgeServiceModule

  public Injector createInjector(Module... modules) {
    final Injector ppInjector = PPActivator.getInstance().getInjector(COM_PUPPETLABS_GEPPETTO_PP_DSL_PP);
    List<Module> forgeModules = new ArrayList<Module>();
    for(Module module : modules)
      forgeModules.add(module);
    forgeModules.add(new ForgeServiceModule());
    forgeModules.add(new ForgeHttpModule() {
      @Override
      protected String getBaseURL() {
        return ppInjector.getInstance(PPPreferencesHelper.class).getForgeURI();
      }
View Full Code Here

Examples of com.puppetlabs.geppetto.forge.impl.ForgeServiceModule

      @Override
      protected String getBaseURL() {
        return serviceURL;
      }
    });
    modules.add(new ForgeServiceModule());
  }
View Full Code Here

Examples of com.puppetlabs.geppetto.forge.impl.ForgeServiceModule

        injector = commonInjector.createChildInjector(GsonModule.INSTANCE, new ForgeHttpModule() {
          @Override
          protected String getBaseURL() {
            return TEST_FORGE_URI;
          }
        }, new ForgeServiceModule(), new ForgeModule(), testBindings);
      }
      catch(Exception e) {
        e.printStackTrace();
        fail(e.getMessage());
      }
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.