Skip to content

Commit

Permalink
Make GrpcClientProxyBuilder class public so that it can be used to dy…
Browse files Browse the repository at this point in the history
…namically 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)
  • Loading branch information
thegridman authored and tomas-langer committed Nov 7, 2019
1 parent cc62e71 commit c3e3002
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* A producer of gRPC {@link io.grpc.Channel Channels}.
*/
@ApplicationScoped
class ChannelProducer {
public class ChannelProducer {

private final GrpcChannelsProvider provider;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@

/**
* A builder for gRPC clients dynamic proxies.
*
* @param <T> the type of the interface to be proxied
*/
class GrpcClientProxyBuilder<T>
public class GrpcClientProxyBuilder<T>
implements Builder<T> {

private static final Map<Class<?>, ClientServiceDescriptor> DESCRIPTORS = new ConcurrentHashMap<>();
Expand Down

0 comments on commit c3e3002

Please # to comment.