static MethodInvocationFilterBinder staticFilterBinder(MethodInvocationFilter... filters) { return staticFilterBinder(ImmutableList.copyOf(filters)); }
public DriftClientBindingBuilder withMethodInvocationFilter(MethodInvocationFilterBinder filterBinder) { filterBinder.bind(filterBinder(), binder, annotation, prefix); return this; }
static MethodInvocationFilterBinder staticFilterBinder(MethodInvocationFilter... filters) { return staticFilterBinder(ImmutableList.copyOf(filters)); }
public DriftClientBindingBuilder withMethodInvocationFilter(MethodInvocationFilterBinder filterBinder) { filterBinder.bind(filterBinder(), binder, annotation, prefix); return this; }
binder -> driftClientBinder(binder).bindDriftClient(DriftScribe.class) .withAddressSelector(addressSelector) .withMethodInvocationFilter(staticFilterBinder(filters)), binder -> driftClientBinder(binder).bindDriftClient(DriftScribe.class, CustomClient.class) .withAddressSelector(addressSelector) .withMethodInvocationFilter(staticFilterBinder(filters)), binder -> binder.bind(ScribeUser.class).in(Scopes.SINGLETON));
.bindDriftClient(Client.class) .withAddressSelector(new MockAddressSelector()) .withMethodInvocationFilter(staticFilterBinder(passThroughFilter, shortCircuitFilter)) .withExceptionClassifier(clientClassifier), binder -> driftClientBinder(binder) .bindDriftClient(Client.class, CustomClient.class) .withAddressSelector(new MockAddressSelector()) .withMethodInvocationFilter(staticFilterBinder(passThroughFilter, shortCircuitFilter)) .withExceptionClassifier(customClientClassifier));