Inspectopedia Help

Incorrect non-public method referenced in "factory-method" attribute

Reports non-public methods referenced in the factory-method attributes of <bean> elements.


public class MyFactory { private static FooBean createBean() {...} } }
<beans> <bean class="MyFactory" factory-method="createBean"/> // reports "Factory method 'createBean' should be public" </beans>

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Spring, 233.SNAPSHOT

Last modified: 13 July 2023