From c3e30024e7b5461f757c62e910d32ca85a1e1001 Mon Sep 17 00:00:00 2001 From: Jonathan Knight Date: Thu, 7 Nov 2019 19:35:55 +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. (#1137) --- .../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<>();