From cfe6f31a9e25229709d49ef6e7441fa5992a8154 Mon Sep 17 00:00:00 2001 From: Jonathan Knight Date: Thu, 7 Nov 2019 17:43:09 +0300 Subject: [PATCH] Make GrpcClientProxyBuilder class public so that it can be used to dynamically create gRPC client proxies from user code. The methods are already public. Make ChannelProducer public so that it can be properly injected into classes. --- .../io/helidon/microprofile/grpc/client/ChannelProducer.java | 2 +- .../microprofile/grpc/client/GrpcClientProxyBuilder.java | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/microprofile/grpc/client/src/main/java/io/helidon/microprofile/grpc/client/ChannelProducer.java b/microprofile/grpc/client/src/main/java/io/helidon/microprofile/grpc/client/ChannelProducer.java index 0dd5b6539f8..7b7aa2408e7 100644 --- a/microprofile/grpc/client/src/main/java/io/helidon/microprofile/grpc/client/ChannelProducer.java +++ b/microprofile/grpc/client/src/main/java/io/helidon/microprofile/grpc/client/ChannelProducer.java @@ -36,7 +36,7 @@ * A producer of gRPC {@link io.grpc.Channel Channels}. */ @ApplicationScoped -class ChannelProducer { +public class ChannelProducer { private final GrpcChannelsProvider provider; diff --git a/microprofile/grpc/client/src/main/java/io/helidon/microprofile/grpc/client/GrpcClientProxyBuilder.java b/microprofile/grpc/client/src/main/java/io/helidon/microprofile/grpc/client/GrpcClientProxyBuilder.java index 78e2f37d373..5915732d87f 100644 --- a/microprofile/grpc/client/src/main/java/io/helidon/microprofile/grpc/client/GrpcClientProxyBuilder.java +++ b/microprofile/grpc/client/src/main/java/io/helidon/microprofile/grpc/client/GrpcClientProxyBuilder.java @@ -27,8 +27,10 @@ /** * A builder for gRPC clients dynamic proxies. + * + * @param the type of the interface to be proxied */ -class GrpcClientProxyBuilder +public class GrpcClientProxyBuilder implements Builder { private static final Map, ClientServiceDescriptor> DESCRIPTORS = new ConcurrentHashMap<>();