Skip to content

Conversation

@klopfdreh
Copy link
Contributor

@klopfdreh klopfdreh commented Sep 16, 2024

fixes: #470

Because there is no Auto-Configuration I think it is fine to just add the hint without restrictions or class checks.

@klopfdreh klopfdreh force-pushed the fix/retrytemplateaot branch 2 times, most recently from 12cad57 to 8605e19 Compare September 16, 2024 15:54
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.

As we discussion in the Spring Cloud issue , it would be better to avoid reflection altogether.
So, please, consider to rework your contribution into a setter for such a log instead.
Thanks

@klopfdreh
Copy link
Contributor Author

Hey - sure 👍 - I am going to change it, tomorrow.

@klopfdreh klopfdreh force-pushed the fix/retrytemplateaot branch 2 times, most recently from b641ef7 to 982eafc Compare September 19, 2024 06:12
@klopfdreh klopfdreh changed the title fix: RetryTemplate aot hints feat: setter for logger field of RetryTemplate Sep 19, 2024
@artembilan artembilan merged commit 4886b75 into spring-projects:main Sep 19, 2024
@artembilan
Copy link
Member

@klopfdreh ,

thank you for contribution; looking forward for more!

Now it is time to raise an issue in Spring Cloud Config to use this new setter instead of reflection.

@klopfdreh
Copy link
Contributor Author

klopfdreh commented Sep 19, 2024

I already prepared the changes and I am going to create the PR and the issue, tomorrow.

Edit: I had some time left and created the Issue (spring-cloud/spring-cloud-config#2544) and PR (spring-cloud/spring-cloud-config#2545):

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.

Apply a setter for the logger field of RetryTemplate so that it doesn't need to be injected via reflections

2 participants