Describe that bean disposal is unsupported for the beans created by FactoryBean #24948
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: documentation
A documentation task
Milestone
Affects: v5.2.5.RELEASE
In #14668, the comment described clearly that the Spring framework is only responsible for managing the lifecycle of the FactoryBean, not the lifecycle of the beans that created by the FactoryBean.
However, this description doesn't appear in the javadoc of FactoryBean. I think it would be great to mention the following points in the documentation:
Closeable.close()
method on the created beans will not be called.Closeable.close()
calls to the underlying beans.The text was updated successfully, but these errors were encountered: