Rename client configurer to customizer

This commit renames the GrpcChannelConfigurer to GrpcChannelBuilderCustomizer
to more accurately represent its purpose and for consistency with the
server-side terminology.

Additionally, a new `What's new?` doc is added to list breaking changes between
versions.

See #52

Signed-off-by: Chris Bono <chris.bono@gmail.com>
This commit is contained in:
Chris Bono
2024-12-01 10:41:27 -06:00
committed by Dave Syer
parent 17b8e9204c
commit 62499c8be2
7 changed files with 61 additions and 44 deletions

View File

@@ -1,4 +1,5 @@
* xref:index.adoc[Overview]
* xref:whats-new.adoc[What's new?]
* xref:getting-started.adoc[Getting Started]
* xref:server.adoc[GRPC Server]
* xref:client.adoc[GRPC Clients]

View File

@@ -82,7 +82,7 @@ spring.grpc.client.channels.local.address=0.0.0.0:9090
There is a default named channel (named "default") that you can configure in the same way, and then it will be used by default if there is no channel with the name specified in the channel creation.
Beans of type `GrpcChannelConfigurer` can be used to customize the `ChannelBuilder` before the channel is built.
Beans of type `GrpcChannelBuilderCustomizer` can be used to customize the `ChannelBuilder` before the channel is built.
This can be useful for setting up security, for example.
== The Local Server Port
@@ -99,4 +99,4 @@ The `@Bean` has to be marked as `@Lazy` to ensure that the port is available whe
SimpleGrpc.SimpleBlockingStub stub(GrpcChannelFactory channels, @LocalGrpcPort int port) {
return SimpleGrpc.newBlockingStub(channels.createChannel("0.0.0.0:" + port).build());
}
----
----

View File

@@ -0,0 +1,13 @@
= What's new?
[[what-s-new-in-0-3-0-since-0-2-0]]
== What's New in 0.3.0 Since 0.2.0
:page-section-summary-toc: 1
This section covers the changes made from version 0.2.0 to version 0.3.0.
=== Breaking Changes
==== GrpcChannelConfigurer renamed
The `GrpcChannelConfigurer` has been renamed to `GrpcChannelBuilderCustomizer` to more accurately represent its purpose and be consistent with the server-side terminology.