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()
           
static void putInvokables(Class<?> sync, Class<?> async, com.google.common.cache.Cache<com.google.common.reflect.Invokable<?,?>,com.google.common.reflect.Invokable<?,?>> cache)
           
protected  com.google.common.cache.Cache<com.google.common.reflect.Invokable<?,?>,com.google.common.reflect.Invokable<?,?>> seedKnownSync2AsyncInvokables()
          seeds well-known invokables.
protected  com.google.common.base.Function<Invocation,Invocation> sync2async(com.google.common.cache.Cache<com.google.common.reflect.Invokable<?,?>,com.google.common.reflect.Invokable<?,?>> cache)
          function view of above
 
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

seedKnownSync2AsyncInvokables

@Provides
@Singleton
protected com.google.common.cache.Cache<com.google.common.reflect.Invokable<?,?>,com.google.common.reflect.Invokable<?,?>> seedKnownSync2AsyncInvokables()
seeds well-known invokables.


sync2async

@Provides
@Singleton
protected com.google.common.base.Function<Invocation,Invocation> sync2async(com.google.common.cache.Cache<com.google.common.reflect.Invokable<?,?>,com.google.common.reflect.Invokable<?,?>> cache)
function view of above


putInvokables

public static void putInvokables(Class<?> sync,
                                 Class<?> async,
                                 com.google.common.cache.Cache<com.google.common.reflect.Invokable<?,?>,com.google.common.reflect.Invokable<?,?>> cache)

installLocations

protected void installLocations()

configure

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


Copyright © 2009-2013 jclouds. All Rights Reserved.