Skip to content

Avoid using SpEL to change the meaning of the injection point #10075

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 1 commit into from
Nov 16, 2021

Conversation

snicoll
Copy link
Member

@snicoll snicoll commented Jul 14, 2021

While I was working with Native, I've noticed that the injection point metadata is changed by a SpEL expression that I found confusing. If the @Value does not apply, the regular behaviour of framework is to inject all bean of that types it knows about.

This commit removes the use of SpEL expression and replaces it with an explicit call to the underlying method. This has the effect of not exposing an additional bean. Additionally, we could move that logic in the configuration class itself.

This commit removes the use of SpEL expression and replaces it with an
explicit call to the underlying method.
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jul 14, 2021
@sjohnr sjohnr added the in: config An issue in spring-security-config label Jul 16, 2021
@rwinch rwinch changed the base branch from main to 5.7.x November 16, 2021 19:52
@rwinch rwinch added this to the 5.7.0-M1 milestone Nov 16, 2021
@rwinch rwinch merged commit 61ee4e5 into spring-projects:5.7.x Nov 16, 2021
@rwinch
Copy link
Member

rwinch commented Nov 16, 2021

Thanks for the PR @snicoll This is merged into 5.7.0-M1

@rwinch rwinch added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: config An issue in spring-security-config type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants