This is an automated email from the ASF dual-hosted git repository.
iuliana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git
The following commit(s) were added to refs/heads/master by this push:
new 2128c1f Added a small JavaDoc snippet to explain when
EntityManagementSupport#isNoLongerManaged() should be used
2128c1f is described below
commit 2128c1f0cf339a8d7d7ae942418a87f6614dc53f
Author: iuliana <[email protected]>
AuthorDate: Tue Jun 8 15:58:36 2021 +0100
Added a small JavaDoc snippet to explain when
EntityManagementSupport#isNoLongerManaged() should be used
---
.../apache/brooklyn/core/mgmt/internal/EntityManagementSupport.java | 3 +++
1 file changed, 3 insertions(+)
diff --git
a/core/src/main/java/org/apache/brooklyn/core/mgmt/internal/EntityManagementSupport.java
b/core/src/main/java/org/apache/brooklyn/core/mgmt/internal/EntityManagementSupport.java
index c293168..7bb36fd 100644
---
a/core/src/main/java/org/apache/brooklyn/core/mgmt/internal/EntityManagementSupport.java
+++
b/core/src/main/java/org/apache/brooklyn/core/mgmt/internal/EntityManagementSupport.java
@@ -106,6 +106,9 @@ public class EntityManagementSupport {
return currentlyDeployed.get();
}
+ /**
+ * Use this instead of !Entities.isManaged(entity) to avoid skipping
publishing ov values that to be published before the entity starts.
+ */
public boolean isNoLongerManaged() {
return wasDeployed() && !isDeployed();
}