Skip to content

GH-4388: Cross-reference alwaysStartAfterRefresh from autoStartup and autoStartDltHandler Javadoc - #4499

Open
won-seoop wants to merge 1 commit into
spring-projects:mainfrom
won-seoop:doc-auto-start-dlt-handler-crossref
Open

GH-4388: Cross-reference alwaysStartAfterRefresh from autoStartup and autoStartDltHandler Javadoc#4499
won-seoop wants to merge 1 commit into
spring-projects:mainfrom
won-seoop:doc-auto-start-dlt-handler-crossref

Conversation

@won-seoop

Copy link
Copy Markdown

Summary

Addresses #4388 (Javadoc / docs improvement).

KafkaListenerEndpointRegistry.setAlwaysStartAfterRefresh() was the only place documenting that this flag overrides autoStartup after a context refresh — creating a hard-to-discover one-way reference. This leads to confusing behaviour in tests where @KafkaListener(autoStartup = "false") or @RetryableTopic(autoStartDltHandler = "false") appear to be silently ignored.

Changes

  • @RetryableTopic.autoStartDltHandler() — added a Note paragraph explaining that alwaysStartAfterRefresh=true (the default) can override this after context refresh, with a @see link to setAlwaysStartAfterRefresh.
  • @KafkaListener.autoStartup() — same note and @see link.
  • KafkaListenerEndpointRegistry.setAlwaysStartAfterRefresh() — added back-links to @KafkaListener.autoStartup() and @RetryableTopic.autoStartDltHandler() so the relationship is visible from both sides.

No behavioural changes; Javadoc only.

Test plan

  • ./gradlew javadoc — verify no Javadoc warnings introduced
  • Inspect generated Javadoc HTML for the three changed methods to confirm cross-links render correctly

🤖 Generated with Claude Code

…toStartup and autoStartDltHandler Javadoc

Add a note to @KafkaListener.autoStartup(), @RetryableTopic.autoStartDltHandler(),
and KafkaListenerEndpointRegistry.setAlwaysStartAfterRefresh() documenting that
the registry's alwaysStartAfterRefresh flag (default true) overrides autoStartup/
autoStartDltHandler after context refresh. This makes the override behaviour
discoverable from both sides of the relationship, preventing the confusing scenario
where autoStartDltHandler=false has no effect in tests.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

1 participant