org.jclouds.rest.config
Class SyncToAsyncHttpInvocationModule

java.lang.Object
  extended by com.google.inject.AbstractModule
      extended by org.jclouds.rest.config.SyncToAsyncHttpInvocationModule
All Implemented Interfaces:
com.google.inject.Module

Deprecated. will be removed in jclouds 1.7; use HttpApiModule

@Deprecated
public class SyncToAsyncHttpInvocationModule
extends com.google.inject.AbstractModule

supports sync-async mapping


Field Summary
protected  Map<Class<?>,Class<?>> sync2Async
          Deprecated.  
 
Constructor Summary
SyncToAsyncHttpInvocationModule()
          Deprecated.  
SyncToAsyncHttpInvocationModule(Map<Class<?>,Class<?>> sync2Async)
          Deprecated.  
 
Method Summary
protected  void configure()
          Deprecated.  
static void putInvokables(Class<?> sync, Class<?> async, com.google.common.cache.Cache<com.google.common.reflect.Invokable<?,?>,com.google.common.reflect.Invokable<?,?>> cache)
          Deprecated.  
protected  com.google.common.cache.Cache<com.google.common.reflect.Invokable<?,?>,com.google.common.reflect.Invokable<?,?>> seedKnownSync2AsyncInvokables()
          Deprecated. 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)
          Deprecated. 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

sync2Async

protected final Map<Class<?>,Class<?>> sync2Async
Deprecated. 
Constructor Detail

SyncToAsyncHttpInvocationModule

public SyncToAsyncHttpInvocationModule()
Deprecated. 

SyncToAsyncHttpInvocationModule

public SyncToAsyncHttpInvocationModule(Map<Class<?>,Class<?>> sync2Async)
Deprecated. 
Method Detail

configure

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

seedKnownSync2AsyncInvokables

@Provides
@Singleton
protected com.google.common.cache.Cache<com.google.common.reflect.Invokable<?,?>,com.google.common.reflect.Invokable<?,?>> seedKnownSync2AsyncInvokables()
Deprecated. 
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)
Deprecated. 
function view of above

See Also:
InvokeAndCallGetOnFutures, InvokeSyncToAsyncHttpMethod

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)
Deprecated. 


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