Document inference of destroy methods with Java config more prominently #29546
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: documentation
A documentation task
Milestone
Affects: 5.3
Java configuration infers destroy methods, looking for methods named
shutdown
andclose
. This is documented, but in a way that is very XML-focused:You have to persevere and read several sentences that are XML-specific to learn that Java configuration has this behavior. I think the inference should be documented more prominently and with a Java-first approach. I think it may even warrant a separate (sub-)section rather than being tucked away in a tip.
The text was updated successfully, but these errors were encountered: