@Test public void shouldCreateServiceFromInstance() { ServiceOne service = new ServiceOne(); assertServiceOne(GrpcClientBuilder.create(service)); }
static GrpcClientBuilder create(Object service) { return new GrpcClientBuilder(service.getClass(), Instance.singleton(service)); }
GrpcClientBuilder extends AbstractServiceBuilder implements Builder<ClientServiceDescriptor.Builder> { static GrpcClientBuilder create(Object service) { return new GrpcClientBuilder(service.getClass(), Instance.singleton(service)); } }
GrpcClientBuilder extends AbstractServiceBuilder implements Builder<ClientServiceDescriptor.Builder> { static GrpcClientBuilder create(Object service) { return new GrpcClientBuilder(service.getClass(), Instance.singleton(service)); } private  GrpcClientBuilder(Class<?> serviceClass, Supplier<?> instance); }
GrpcClientBuilder extends AbstractServiceBuilder implements Builder<ClientServiceDescriptor.Builder> { static GrpcClientBuilder create(Object service) { return new GrpcClientBuilder(service.getClass(), Instance.singleton(service)); } private  GrpcClientBuilder(Class<?> serviceClass, Supplier<?> instance); @Override ClientServiceDescriptor.Builder build(); }
GrpcClientBuilder extends AbstractServiceBuilder implements Builder<ClientServiceDescriptor.Builder> { static GrpcClientBuilder create(Object service) { return new GrpcClientBuilder(service.getClass(), Instance.singleton(service)); } private  GrpcClientBuilder(Class<?> serviceClass, Supplier<?> instance); @Override ClientServiceDescriptor.Builder build();  }