Clarify destruction order effect in @DependsOn annotation javadoc

Issue: SPR-17384

(cherry picked from commit 00b7782b5f)
This commit is contained in:
Juergen Hoeller
2018-10-18 18:03:44 +02:00
parent cf25efc7d3
commit c73b98cf33
2 changed files with 12 additions and 6 deletions

View File

@@ -1914,11 +1914,11 @@ delimiters:
[NOTE]
====
The `depends-on` attribute in the bean definition can specify both an initialization
time dependency and, in the case of <<beans-factory-scopes-singleton,singleton>> beans
only, a corresponding destroy time dependency. Dependent beans that define a
`depends-on` relationship with a given bean are destroyed first, prior to the given bean
itself being destroyed. Thus `depends-on` can also control shutdown order.
The `depends-on` attribute in the bean definition can specify both an initialization-time
dependency and, in the case of <<beans-factory-scopes-singleton,singleton>> beans only,
a corresponding destruction-time dependency. Dependent beans that define a `depends-on`
relationship with a given bean are destroyed first, prior to the given bean itself being
destroyed. Thus `depends-on` can also control shutdown order.
====