Repository navigation
Add Spring Boot auto-configuration for NexusClient - #3158
Merged
Merged
Conversation
Quinn-With-Two-Ns
marked this pull request as ready for review
October 20, 2026 17:50
Quinn-With-Two-Ns
force-pushed
the
nexus-client-spring-autoconfigure
branch
from
December 1, 2026 22:15
05863be to
cf7644c
Compare
dplyukhin
approved these changes
Dec 1, 2026
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit e70c196. Configure here.
Keep non-root clients available when an application supplies its own NexusClient. Document namespace bean naming and the test server's standalone Nexus limitation.
Apply the existing workflow client namespace rule to ActivityClient and NexusClient. Verify the namespace on the outgoing RPCs when a customizer returns a fresh builder.
Quinn-With-Two-Ns
force-pushed
the
nexus-client-spring-autoconfigure
branch
from
December 1, 2026 23:17
e70c196 to
ea4d7d4
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

What changed?
temporalNexusClientbean for the root namespace and<alias-or-namespace>NexusClientbeans for non-root namespaces.TemporalOptionsCustomizer<NexusClientOptions.Builder>beans, with automatic interceptor registration for the root client.Why?
Make it easy to inject and reuse a process-lifetime Nexus client, following the existing WorkflowClient and ScheduleClient Spring integration.
Closes #3122.
Note
Low Risk
Additive Spring wiring and tests following established ActivityClient patterns; a small hardening fix for non-root client customizers affects namespace scoping only.
Overview
Adds Spring Boot auto-configuration for
NexusClient, mirroring the existing workflow, schedule, and activity client integration.Applications get a
@PrimarytemporalNexusClientfor the root namespace (unless they define their ownNexusClient), plus per–non-root-namespace beans named<alias-or-namespace>NexusClient. Clients are built through newNexusClientOptionsTemplatewiring inClientTemplate/NamespaceTemplate, with namespace-specific data converters, orderedTemporalOptionsCustomizer<NexusClientOptions.Builder>beans, and automaticNexusClientInterceptorregistration on the root client only.For non-root namespaces,
NonRootBeanPostProcessornow wraps workflow, activity, and nexus client customizers so a customizer that returns a fresh options builder still has the configured namespace applied on outgoing RPCs.CHANGELOG and README document the new beans and customization naming; integration tests cover backoff, multi-namespace connections, and namespace preservation.
Reviewed by Cursor Bugbot for commit fbd51a8. Bugbot is set up for automated code reviews on this repo. Configure here.