File tree 2 files changed +126
-134
lines changed
spring-context/src/main/java/org/springframework/context/annotation
2 files changed +126
-134
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2012 the original author or authors.
2
+ * Copyright 2002-2018 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
28
28
* does not explicitly depend on another through properties or constructor arguments,
29
29
* but rather depends on the side effects of another bean's initialization.
30
30
*
31
+ * <p>A depends-on declaration can specify both an initialization-time dependency and,
32
+ * in the case of singleton beans only, a corresponding destruction-time dependency.
33
+ * Dependent beans that define a depends-on relationship with a given bean are destroyed
34
+ * first, prior to the given bean itself being destroyed. Thus, a depends-on declaration
35
+ * can also control shutdown order.
36
+ *
31
37
* <p>May be used on any class directly or indirectly annotated with
32
38
* {@link org.springframework.stereotype.Component} or on methods annotated
33
39
* with {@link Bean}.
You can’t perform that action at this time.
0 commit comments