You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aries.apache.org by cs...@apache.org on 2021/03/08 17:28:06 UTC
[aries-component-dsl] 01/10: Propagate signal but do not contribute
to refresh enclosing resfreshers
This is an automated email from the ASF dual-hosted git repository.
csierra pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/aries-component-dsl.git
commit 77a548272f8101c7a64b78029a1b4c89652372de
Author: Carlos Sierra Andrés <ca...@liferay.com>
AuthorDate: Mon Mar 8 11:48:14 2021 +0100
Propagate signal but do not contribute to refresh enclosing resfreshers
---
.../org/apache/aries/component/dsl/internal/RefreshWhenOSGi.java | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/component-dsl/src/main/java/org/apache/aries/component/dsl/internal/RefreshWhenOSGi.java b/component-dsl/src/main/java/org/apache/aries/component/dsl/internal/RefreshWhenOSGi.java
index e591787..e144d54 100644
--- a/component-dsl/src/main/java/org/apache/aries/component/dsl/internal/RefreshWhenOSGi.java
+++ b/component-dsl/src/main/java/org/apache/aries/component/dsl/internal/RefreshWhenOSGi.java
@@ -48,7 +48,12 @@ public class RefreshWhenOSGi<T> extends OSGiImpl<T> {
}
));
- return new OSGiResultImpl(result::close, () -> false);
+ return new OSGiResultImpl(
+ result::close,
+ () -> {
+ result.update(); return false;
+ }
+ );
});
}