Skip to content

Expose more reflection hints #3951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 18, 2022

Conversation

artembilan
Copy link
Member

  • Bring back @Reflective on Pausable - for possible end-user usage
  • Add ReactiveMessageHandler hint since its method is used reflectively in the IntegrationRSocketMessageHandler
  • Add @Reflective on the ServerRSocketMessageHandler.handleConnectionSetup() since it is used reflectively for a registerHandlerMethod()
  • Add KafkaRuntimeHints to expose Pausable contract on Kafka inbound endpoints for SpEL invocation via Control Bus
  • Document native images support

* Bring back `@Reflective` on `Pausable` - for possible end-user usage
* Add `ReactiveMessageHandler` hint since its method is used reflectively
in the `IntegrationRSocketMessageHandler`
* Add `@Reflective` on the `ServerRSocketMessageHandler.handleConnectionSetup()`
since it is used reflectively for a `registerHandlerMethod()`
* Add `KafkaRuntimeHints` to expose `Pausable` contract on Kafka inbound endpoints
for SpEL invocation via Control Bus
* Document native images support
*
* @since 6.0
*/
class KafkaRuntimeHints implements RuntimeHintsRegistrar {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe rename to KafkaIntegrationRuntimeHints to avoid using the same class name?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was thinking about, but there is a package in a class name either way.
Plus this one is public as any library RuntimeHintsRegistrar impls registered in the aot.factories file.
See other Spring Integration impls: HttpRuntimeHints, JdbcRuntimeHints etc.

I really decided that integration in a name is going to be redundant if we have it already in a package name, plus this one is not public API to be used from end-user perspective.

Co-authored-by: Gary Russell <[email protected]>
@garyrussell garyrussell merged commit 3c40b01 into spring-projects:main Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants