public class BinderUtils extends Object
Constructor and Description |
---|
BinderUtils() |
Modifier and Type | Method and Description |
---|---|
static <S,A> void |
bindHttpApi(com.google.inject.Binder binder,
Class<A> api)
adds an explicit binding for
async by parsing its annotations. |
static <S,A> void |
bindSyncToAsyncApi(com.google.inject.Binder binder,
Class<S> sync,
Class<A> async)
Deprecated.
will be removed in jclouds 1.7, as async interfaces are no
longer supported.
|
static <S,A> void |
bindSyncToAsyncHttpApi(com.google.inject.Binder binder,
Class<S> sync,
Class<A> async)
Deprecated.
will be removed in jclouds 1.7, as async interfaces are no
longer supported.
|
public static <S,A> void bindHttpApi(com.google.inject.Binder binder, Class<A> api)
async
by parsing its annotations.S
- sync interface that blocksA
- api type with http annotationsbinder
- guice binderapi
- type with http annotations@Deprecated public static <S,A> void bindSyncToAsyncHttpApi(com.google.inject.Binder binder, Class<S> sync, Class<A> async)
async
by parsing its annotations. Then, adds an explicit binding for an
interface which synchronously blocks on similar calls to an async
type.S
- sync interface that blocksA
- async type where all methods have same args as sync
, but returns ListenableFuture
binder
- guice bindersync
- type interface that blocksasync
- type type that returns ListenableFuture
@Deprecated public static <S,A> void bindSyncToAsyncApi(com.google.inject.Binder binder, Class<S> sync, Class<A> async)
async
type.S
- sync interface that blocksA
- async type where all methods have same args as sync
, but
returns ListenableFuture
binder
- guice bindersync
- type interface that blocksasync
- type type that returns ListenableFuture
Copyright © 2009-2013 jclouds. All Rights Reserved.