Skip to content

Default stub factory configurable via properties (#250) - #252

Merged
dsyer merged 1 commit into
spring-projects:mainfrom
ch200203:feature/configurable-default-client-factory
Aug 27, 2025
Merged

dsyer merged 1 commit into
spring-projects:mainfrom
ch200203:feature/configurable-default-client-factory

Conversation

@ch200203

@ch200203 ch200203 commented Aug 21, 2025

Copy link
Copy Markdown
Contributor

This PR makes the global default gRPC client stub factory configurable via Spring Boot properties. Instead of being hardcoded to the blocking stub factory during auto-registration, users can now choose any StubFactory by setting a single property.

Property

# FQCN of a StubFactory implementation
spring.grpc.client.default-stub-factory=org.springframework.grpc.client.ReactorStubFactory
  • Type: Class<? extends StubFactory<?>> (per @dsyer’s suggestion — no string/enum alias map).
  • Default: org.springframework.grpc.client.BlockingStubFactory (preserves current behavior).

Resolves #250

@dsyer

dsyer commented Aug 21, 2025

Copy link
Copy Markdown
Member

Please run mvn install to check your changes.

@dsyer

dsyer commented Aug 21, 2025

Copy link
Copy Markdown
Member

You forgot to sign the last commit? Might be best to just squash them all down into a single commit and sign that.

@ch200203

ch200203 commented Aug 21, 2025

Copy link
Copy Markdown
Contributor Author

Thanks for the heads-up! I missed signing the last commit—sorry about that. I’ll squash this PR down to a single commit, sign it, and push an update.
@dsyer Thanks for your help! 🙇‍♂️

Signed-off-by: cheolhwan.ihn <ch200203@gmail.com>
@dsyer
dsyer merged commit 192085c into spring-projects:main Aug 27, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make the default gRPC client stub factory configurable via application properties

2 participants