|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jclouds.rest.config.BinderUtils
public class BinderUtils
| Constructor Summary | |
|---|---|
BinderUtils()
|
|
| Method Summary | ||
|---|---|---|
static
|
bindHttpApi(com.google.inject.Binder binder,
Class<A> api)
adds an explicit binding for async by parsing its annotations. |
|
static
|
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
|
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. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BinderUtils()
| Method Detail |
|---|
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 ListenableFuturebinder - 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 ListenableFuturebinder - guice bindersync - type interface that blocksasync - type type that returns ListenableFuture
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||