summaryrefslogtreecommitdiffstats
path: root/component
diff options
context:
space:
mode:
authorJon Marius Venstad <venstad@gmail.com>2020-08-21 17:41:51 +0200
committerJon Marius Venstad <venstad@gmail.com>2020-08-21 17:41:51 +0200
commitdbcc9107e3ae49e61270e002e241d9a07864facd (patch)
tree761f8a8199bdfb4475324c9c080181eebdb2a07e /component
parent67e528443cca68cc527e50c2714ad1717563c458 (diff)
Call deconstruct in reverse dependency order
Diffstat (limited to 'component')
-rw-r--r--component/src/main/java/com/yahoo/component/AbstractComponent.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/component/src/main/java/com/yahoo/component/AbstractComponent.java b/component/src/main/java/com/yahoo/component/AbstractComponent.java
index 7fc828becb5..163a2b0b7ef 100644
--- a/component/src/main/java/com/yahoo/component/AbstractComponent.java
+++ b/component/src/main/java/com/yahoo/component/AbstractComponent.java
@@ -124,7 +124,8 @@ public class AbstractComponent implements Component {
* <p>
* All other calls to this component is completed before this method is called.
* It will only be called once. It should block while doing cleanup tasks and return when
- * this class is ready for garbage collection.
+ * this class is ready for garbage collection. This method is called in reverse dependency order,
+ * so a component will be deconstructed after any other components it is injected into.
* <p>
* This default implementation does nothing.
*/