Clarify destruction order effect in @DependsOn annotation javadoc
Issue: SPR-17384
(cherry picked from commit 00b7782b5f)
This commit is contained in:
@@ -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.
|
||||
====
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user