org.jclouds.rest.config
Class RestModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.rest.config.RestModule
All Implemented Interfaces:
com.google.inject.Module
Direct Known Subclasses:
RestClientModule

public class RestModule
extends com.google.inject.AbstractModule


Field Summary
protected  AtomicReference<AuthorizationException> authException
           
protected  Map<Class<?>,Class<?>> sync2Async
           
static com.google.inject.TypeLiteral<com.google.common.base.Supplier<URI>> URI_SUPPLIER_TYPE
           
 
Constructor Summary
RestModule()
           
RestModule(Map<Class<?>,Class<?>> sync2Async)
           
 
Method Summary
protected  void configure()
           
protected  void installLocations()
           
protected  com.google.common.cache.LoadingCache<Class<?>,Boolean> seedAnnotationCache(SeedAnnotationCache seedAnnotationCache)
           
protected  Map<String,Long> timeouts(com.google.common.base.Function<com.google.common.base.Predicate<String>,Map<String,String>> filterStringsBoundByName)
           
 
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
 

Field Detail

URI_SUPPLIER_TYPE

public static final com.google.inject.TypeLiteral<com.google.common.base.Supplier<URI>> URI_SUPPLIER_TYPE

sync2Async

protected final Map<Class<?>,Class<?>> sync2Async

authException

protected final AtomicReference<AuthorizationException> authException
Constructor Detail

RestModule

public RestModule()

RestModule

public RestModule(Map<Class<?>,Class<?>> sync2Async)
Method Detail

installLocations

protected void installLocations()

configure

protected void configure()
Specified by:
configure in class com.google.inject.AbstractModule

timeouts

@Provides
@Singleton
@Named(value="TIMEOUTS")
protected Map<String,Long> timeouts(com.google.common.base.Function<com.google.common.base.Predicate<String>,Map<String,String>> filterStringsBoundByName)

seedAnnotationCache

@Provides
@Singleton
protected com.google.common.cache.LoadingCache<Class<?>,Boolean> seedAnnotationCache(SeedAnnotationCache seedAnnotationCache)


Copyright © 2009-2012 jclouds. All Rights Reserved.