grpc-java/core
Carl Mastrangelo 53f56a32f1 inprocess,core: add ManagedChannelBuilder and ServerBuilder factory hiders
* inprocess,core: add ManagedChannelBuilder and ServerBuilder factory hiders

Because the factory for Channels and Servers resides on the builder
itself, it is easy for subclasses to accidentally inherit the
factory.  This causes confusion, because calling a static method on
a specific class may result in a different class.

This change adds hiding static factories to each builder, and a test
to enforce that each subclass hides the factory.  The test lives in
the interop tests, because it has a classpath dependency on all the
existing transports.

Minor note: the test scans the classpath using a Beta Guava API.
The test can be disabled if the API goes away.
2017-09-06 15:21:17 -07:00
..
src inprocess,core: add ManagedChannelBuilder and ServerBuilder factory hiders 2017-09-06 15:21:17 -07:00
BUILD.bazel Fix gson / opencensus bazel naming mixup 2017-08-23 15:48:08 -07:00
build.gradle Move jmh benchmarks to their respective modules 2017-08-28 13:37:39 -07:00