@Override protected void configure() { super.configure(); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeHttpMethod.class); bindHttpApi(binder(), api); bindHttpApi(binder(), HttpClient.class); // TODO: remove when references are gone bindHttpApi(binder(), HttpAsyncClient.class); bindErrorHandlers(); bindRetryHandlers(); }
@Override protected void configure() { super.configure(); }
@Override protected void configure() { super.configure(); install(invocationModule); bindSyncToAsyncHttpApi(binder(), syncClientType.getRawType(), asyncClientType.getRawType()); bindErrorHandlers(); bindRetryHandlers(); }
public void configure() { SetCaller delegateScope = new SetCaller(); bind(CALLER_INVOCATION).toProvider(delegateScope.new CallerInvocationProvider()); bind(SetCaller.class).toInstance(delegateScope); } }
@Override protected void configure() { bind(new TypeLiteral<Map<Class<?>, Class<?>>>() { }).toInstance(sync2Async); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeSyncToAsyncHttpMethod.class); BinderUtils.bindSyncToAsyncHttpApi(binder(), HttpClient.class, HttpAsyncClient.class); }
@Override protected void configure() { super.configure(); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeHttpMethod.class); bindHttpApi(binder(), api); bindHttpApi(binder(), HttpClient.class); // TODO: remove when references are gone bindHttpApi(binder(), HttpAsyncClient.class); bindErrorHandlers(); bindRetryHandlers(); }
@Override protected void configure() { super.configure(); }
@Override protected void configure() { super.configure(); install(invocationModule); bindSyncToAsyncHttpApi(binder(), syncClientType.getRawType(), asyncClientType.getRawType()); bindErrorHandlers(); bindRetryHandlers(); }
public void configure() { SetCaller delegateScope = new SetCaller(); bind(CALLER_INVOCATION).toProvider(delegateScope.new CallerInvocationProvider()); bind(SetCaller.class).toInstance(delegateScope); } }
@Override protected void configure() { bind(new TypeLiteral<Map<Class<?>, Class<?>>>() { }).toInstance(sync2Async); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeSyncToAsyncHttpMethod.class); BinderUtils.bindSyncToAsyncHttpApi(binder(), HttpClient.class, HttpAsyncClient.class); }
@Override protected void configure() { super.configure(); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeHttpMethod.class); bindHttpApi(binder(), api); bindHttpApi(binder(), HttpClient.class); // TODO: remove when references are gone bindHttpApi(binder(), HttpAsyncClient.class); bindErrorHandlers(); bindRetryHandlers(); }
@Override protected void configure() { super.configure(); install(invocationModule); bindSyncToAsyncHttpApi(binder(), syncClientType.getRawType(), asyncClientType.getRawType()); bindErrorHandlers(); bindRetryHandlers(); }
public void configure() { SetCaller delegateScope = new SetCaller(); bind(CALLER_INVOCATION).toProvider(delegateScope.new CallerInvocationProvider()); bind(SetCaller.class).toInstance(delegateScope); } }
@Override protected void configure() { bind(new TypeLiteral<Map<Class<?>, Class<?>>>() { }).toInstance(sync2Async); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeSyncToAsyncHttpMethod.class); BinderUtils.bindSyncToAsyncHttpApi(binder(), HttpClient.class, HttpAsyncClient.class); }
@Override protected void configure() { super.configure(); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeHttpMethod.class); bindHttpApi(binder(), api); bindHttpApi(binder(), HttpClient.class); bindErrorHandlers(); bindRetryHandlers(); }
public void configure() { SetCaller delegateScope = new SetCaller(); bind(CALLER_INVOCATION).toProvider(delegateScope.new CallerInvocationProvider()); bind(SetCaller.class).toInstance(delegateScope); } }
@Override protected void configure() { super.configure(); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeHttpMethod.class); bindHttpApi(binder(), api); bindHttpApi(binder(), HttpClient.class); bindErrorHandlers(); bindRetryHandlers(); }
public void configure() { SetCaller delegateScope = new SetCaller(); bind(CALLER_INVOCATION).toProvider(delegateScope.new CallerInvocationProvider()); bind(SetCaller.class).toInstance(delegateScope); } }
@Override protected void configure() { super.configure(); bind(new TypeLiteral<Function<Invocation, Object>>() { }).to(InvokeHttpMethod.class); bindHttpApi(binder(), api); bindHttpApi(binder(), HttpClient.class); bindErrorHandlers(); bindRetryHandlers(); }
public void configure() { SetCaller delegateScope = new SetCaller(); bind(CALLER_INVOCATION).toProvider(delegateScope.new CallerInvocationProvider()); bind(SetCaller.class).toInstance(delegateScope); } }