org.jclouds.googlecomputeengine.config
Class GoogleComputeEngineHttpApiModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.rest.config.RestModule
          extended by org.jclouds.rest.config.HttpApiModule<GoogleComputeEngineApi>
              extended by org.jclouds.googlecomputeengine.config.GoogleComputeEngineHttpApiModule
All Implemented Interfaces:
com.google.inject.Module

public class GoogleComputeEngineHttpApiModule
extends org.jclouds.rest.config.HttpApiModule<GoogleComputeEngineApi>

Configures the GoogleCompute connection.


Field Summary
 
Fields inherited from class org.jclouds.rest.config.HttpApiModule
api
 
Fields inherited from class org.jclouds.rest.config.RestModule
authException, URI_SUPPLIER_TYPE
 
Constructor Summary
GoogleComputeEngineHttpApiModule()
           
 
Method Summary
protected  void bindErrorHandlers()
           
protected  void configure()
           
 com.google.common.base.Function<String,URI> provideMachineTypeNameToURIFunction(com.google.common.base.Supplier<URI> endpoint, com.google.common.base.Supplier<String> userProject)
           
 com.google.common.base.Function<String,URI> provideNetworkNameToURIFunction(com.google.common.base.Supplier<URI> endpoint, com.google.common.base.Supplier<String> userProject)
           
 com.google.common.base.Function<String,URI> provideRegionNameToURIFunction(com.google.common.base.Supplier<URI> endpoint, com.google.common.base.Supplier<String> userProject)
           
 com.google.common.base.Function<String,URI> provideZoneNameToURIFunction(com.google.common.base.Supplier<URI> endpoint, com.google.common.base.Supplier<String> userProject)
           
 com.google.common.base.Supplier<String> supplyProject(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds, GoogleComputeEngineApi api, AtomicReference<org.jclouds.rest.AuthorizationException> authException, long seconds)
           
 
Methods inherited from class org.jclouds.rest.config.HttpApiModule
bindRetryHandlers
 
Methods inherited from class org.jclouds.rest.config.RestModule
installLocations
 
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GoogleComputeEngineHttpApiModule

public GoogleComputeEngineHttpApiModule()
Method Detail

configure

protected void configure()
Overrides:
configure in class org.jclouds.rest.config.HttpApiModule<GoogleComputeEngineApi>

bindErrorHandlers

protected void bindErrorHandlers()
Overrides:
bindErrorHandlers in class org.jclouds.rest.config.HttpApiModule<GoogleComputeEngineApi>

supplyProject

@Provides
@Singleton
public com.google.common.base.Supplier<String> supplyProject(com.google.common.base.Supplier<org.jclouds.domain.Credentials> creds,
                                                                                GoogleComputeEngineApi api,
                                                                                AtomicReference<org.jclouds.rest.AuthorizationException> authException,
                                                                                @Named(value="jclouds.session-interval")
                                                                                long seconds)

provideMachineTypeNameToURIFunction

@Provides
@Singleton
@Named(value="machineTypeToURI")
public com.google.common.base.Function<String,URI> provideMachineTypeNameToURIFunction(com.google.common.base.Supplier<URI> endpoint,
                                                                                                                com.google.common.base.Supplier<String> userProject)

provideNetworkNameToURIFunction

@Provides
@Singleton
@Named(value="networkToURI")
public com.google.common.base.Function<String,URI> provideNetworkNameToURIFunction(com.google.common.base.Supplier<URI> endpoint,
                                                                                                            com.google.common.base.Supplier<String> userProject)

provideZoneNameToURIFunction

@Provides
@Singleton
@Named(value="zoneToURI")
public com.google.common.base.Function<String,URI> provideZoneNameToURIFunction(com.google.common.base.Supplier<URI> endpoint,
                                                                                                         com.google.common.base.Supplier<String> userProject)

provideRegionNameToURIFunction

@Provides
@Singleton
@Named(value="regionToURI")
public com.google.common.base.Function<String,URI> provideRegionNameToURIFunction(com.google.common.base.Supplier<URI> endpoint,
                                                                                                           com.google.common.base.Supplier<String> userProject)


Copyright © 2009-2014 The Apache Software Foundation. All Rights Reserved.