Package com.puppetlabs.geppetto.forge.client

Examples of com.puppetlabs.geppetto.forge.client.ForgeHttpModule


    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


  @Test
  public void dropTestModules() throws Exception {
    Properties props = AbstractForgeMojo.readForgeProperties();

    // Login using the primary login (bob)
    Module forgeModule = new ForgeHttpModule() {
      @Override
      protected String getBaseURL() {
        return System.getProperty("forge.base.url");
      }
    };
View Full Code Here

  private String serviceURL;

  @Override
  protected void addModules(Diagnostic diagnostic, List<Module> modules) {
    super.addModules(diagnostic, modules);
    modules.add(new ForgeHttpModule() {
      @Override
      protected String getBaseURL() {
        return serviceURL;
      }
    });
View Full Code Here

  public static class TestModule extends AbstractModule {

    @Override
    protected void configure() {
      install(GsonModule.INSTANCE);
      install(new ForgeHttpModule() {

        @Override
        protected String getBaseURL() {
          return FORGE_STAGING_SERVICE_BASE_URL;
        }
View Full Code Here

  /**
   * Creates a default read-only client. Since this client has no credentials, it will not
   * be able to publish.
   */
  public ForgeAPI() {
    this.injector = Guice.createInjector(GsonModule.INSTANCE, new ForgeHttpModule() {

      @Override
      protected String getBaseURL() {
        return Constants.FORGE_SERVICE_BASE_URL;
      }
View Full Code Here

            fail(e.getMessage());
          }
        }
      };
      try {
        injector = commonInjector.createChildInjector(GsonModule.INSTANCE, new ForgeHttpModule() {
          @Override
          protected String getBaseURL() {
            return TEST_FORGE_URI;
          }
        }, new ForgeServiceModule(), new ForgeModule(), testBindings);
View Full Code Here

TOP

Related Classes of com.puppetlabs.geppetto.forge.client.ForgeHttpModule

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.