Skip to content

Conversation

@onobc
Copy link
Contributor

@onobc onobc commented Mar 2, 2023

  • Remove the use of instance suppliers on bean definitions that are processed during the AOT phase.

  • The remaining areas that use instance suppliers do so at runtime and do not use reflection, but instead
    are passed the configured bean to register.

See spring-cloud/spring-cloud-stream#2655

Copy link
Member

@artembilan artembilan left a comment

Choose a reason for hiding this comment

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

Thank you, Chris!
Just a couple requests to restore existing behavior in your change.
The mostly important concern that we would like to deal with existing instances in those bean definitions, but not creating new as it would be with a default class-based configuration.

* Remove the use of instance suppliers on bean definitions
that are processed during the AOT phase.

* The remaining areas that use instance suppliers do so
at runtime and do not use reflection, but instead
are passed the configured bean to register.

See spring-cloud/spring-cloud-stream#2655
@onobc onobc force-pushed the cbono-remove-instance-suppliers branch from dbd785c to bc92c49 Compare March 2, 2023 23:35
@onobc onobc requested a review from artembilan March 2, 2023 23:36
@artembilan artembilan merged commit 3fad7cd into spring-projects:main Mar 3, 2023
@artembilan
Copy link
Member

... and cherry-picked to 6.0.x

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