Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SpringBeanProcessor: cope with non-public @bean methods
A @Bean-annotated method on a Spring @configuration class does not have to be public. Previously, when SpringBeanProcessor encountered a non-public @bean method it would fail to determine the bean's type and throw an IllegalStateException. This commit updates SpringBeanProcessor to use Class.getDeclaredMethods() when looking for the @bean method on a @configuration class, thereby allowing it to find non-public methods.
- Loading branch information
a29ea88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commits breaks finding of methods which are declared in super classes.
I submitted a pull request to fix that again.