-
Notifications
You must be signed in to change notification settings - Fork 40.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consider factory beans when finding candidates
Previously, if a bean name was a factory dereference its definition would not be found. When the definition wasn't found it was assumed that the bean was an autowire candidate and a default candidate. If this, in fact, was not the case, @ConditionalOnMissingBean would not match when it should have done and @ConditionalOnBean would match when it should not had done. This commit updates the bean-based conditions to correctly consider factory beans so that whether or not they are a candidate can be evaluated correctly. Fixes gh-42970
- Loading branch information
1 parent
4a9da78
commit 2b3c93f
Showing
3 changed files
with
89 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters