Package org.jclouds.rest.config

Examples of org.jclouds.rest.config.SyncToAsyncHttpInvocationModule


public class TransientChefApiModule extends AbstractModule {

   @Override
   protected void configure() {
      install(new RestModule());
      install(new SyncToAsyncHttpInvocationModule());
      bind(ChefApi.class).to(TransientChefApi.class);
      bind(LocalBlobStore.class).annotatedWith(Names.named("databags"))
            .toInstance(
                  ContextBuilder
                        .newBuilder(new TransientApiMetadata())
View Full Code Here


public class TransientChefApiModule extends AbstractModule {

   @Override
   protected void configure() {
      install(new RestModule());
      install(new SyncToAsyncHttpInvocationModule());
      bind(ChefApi.class).to(TransientChefApi.class);
      bind(LocalBlobStore.class).annotatedWith(Names.named("databags"))
            .toInstance(
                  ContextBuilder
                        .newBuilder(new TransientApiMetadata())
View Full Code Here

      } else if (apiMetadata instanceof RestApiMetadata) {
         RestApiMetadata rest = RestApiMetadata.class.cast(apiMetadata);
         modules.add(new RestClientModule(typeToken(rest.getApi()), typeToken(rest.getAsyncApi())));
      } else {
         modules.add(new RestModule());
         modules.add(new SyncToAsyncHttpInvocationModule());
      }
   }
View Full Code Here

      } else if (apiMetadata instanceof RestApiMetadata) {
         RestApiMetadata rest = RestApiMetadata.class.cast(apiMetadata);
         modules.add(new RestClientModule(typeToken(rest.getApi()), typeToken(rest.getAsyncApi())));
      } else {
         modules.add(new RestModule());
         modules.add(new SyncToAsyncHttpInvocationModule());
      }
   }
View Full Code Here

      } else if (apiMetadata instanceof RestApiMetadata) {
         RestApiMetadata rest = RestApiMetadata.class.cast(apiMetadata);
         modules.add(new RestClientModule(typeToken(rest.getApi()), typeToken(rest.getAsyncApi())));
      } else {
         modules.add(new RestModule());
         modules.add(new SyncToAsyncHttpInvocationModule());
      }
   }
View Full Code Here

      } else if (apiMetadata instanceof RestApiMetadata) {
         RestApiMetadata rest = RestApiMetadata.class.cast(apiMetadata);
         modules.add(new RestClientModule(typeToken(rest.getApi()), typeToken(rest.getAsyncApi())));
      } else {
         modules.add(new RestModule());
         modules.add(new SyncToAsyncHttpInvocationModule());
      }
   }
View Full Code Here

TOP

Related Classes of org.jclouds.rest.config.SyncToAsyncHttpInvocationModule

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.