Skip to content
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

Refactor BeanFactory advice so we can repair other injected bean definitions #4543

Merged
merged 3 commits into from
Jan 18, 2023

Conversation

mcculls
Copy link
Contributor

@mcculls mcculls commented Jan 16, 2023

What Does This Do

Introduces BeanDefinitionRepairer to help make the existing bean definition repair approach more re-usable. Bean definitions registered by the tracer now just have to register their classes with BeanDefinitionRepairer and these will be re-applied to bean definitions with matching names, even if the original bean class has been lost, for example due to the definition being cloned.

Additional Notes

Includes a new smoke test to verify that bean definition repair works for both old and new spring-webmvc definitions.

Solves #4537

@mcculls mcculls changed the title [WIPRefactor BeanFactory advice so we can repair other injected bean definitions [WIP] Refactor BeanFactory advice so we can repair other injected bean definitions Jan 16, 2023
@mcculls mcculls added the tag: do not merge Do not merge changes label Jan 16, 2023
@mcculls mcculls force-pushed the mcculls/reuse-spring-bean-definition-repair branch 2 times, most recently from d4c04e1 to a1b744c Compare January 16, 2023 11:42
@mcculls mcculls force-pushed the mcculls/reuse-spring-bean-definition-repair branch from a1b744c to 6b077ca Compare January 16, 2023 12:11
@amarziali amarziali force-pushed the mcculls/reuse-spring-bean-definition-repair branch from e32d494 to 934a1aa Compare January 16, 2023 13:24
@mcculls mcculls marked this pull request as ready for review January 16, 2023 14:20
@mcculls mcculls requested a review from a team as a code owner January 16, 2023 14:20
@mcculls mcculls added inst: others All other instrumentations inst: spring Spring instrumentation and removed tag: do not merge Do not merge changes labels Jan 16, 2023
@mcculls mcculls changed the title [WIP] Refactor BeanFactory advice so we can repair other injected bean definitions Refactor BeanFactory advice so we can repair other injected bean definitions Jan 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inst: others All other instrumentations inst: spring Spring instrumentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants