Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Clarify if @DependsOn influences bean destroy lifecycle ordering [SPR-17384] #21917
Currently it is unclear from the documentation if having a
??If you want to influence the startup creation order of certain beans, consider declaring some of them as
??Beans on which the current bean depends. Any beans specified are guaranteed to be created by the container before this bean. Used infrequently in cases where a bean does not explicitly depend on another through properties or constructor arguments, but rather depends on the side effects of another bean's initialization.??
However, the semantics of destroy are clear in the XML case: