summaryrefslogtreecommitdiffstats
path: root/jdisc_core
diff options
context:
space:
mode:
authorgjoranv <gv@verizonmedia.com>2019-10-31 13:43:01 +0100
committergjoranv <gv@verizonmedia.com>2019-10-31 13:47:25 +0100
commit9b81f514ee00c06d278064675b8f303f88293da3 (patch)
tree840b44ab95d46cbdeef5e7061c52b03d80fe8bcf /jdisc_core
parenteb82e2768977558b68ea2469fdb8c1c793e3b8ae (diff)
Update comments about FindHook.
Diffstat (limited to 'jdisc_core')
-rw-r--r--jdisc_core/src/main/java/com/yahoo/jdisc/core/BundleCollisionHook.java10
1 files changed, 4 insertions, 6 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/core/BundleCollisionHook.java b/jdisc_core/src/main/java/com/yahoo/jdisc/core/BundleCollisionHook.java
index 8a038b79bde..e2167a5cc96 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/core/BundleCollisionHook.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/core/BundleCollisionHook.java
@@ -19,9 +19,10 @@ import java.util.Set;
import java.util.logging.Logger;
/**
- * A bundle {@link CollisionHook} that contains a set of bundles that are allowed to collide with
- * bundles that are about to be installed. In order to clean up when bundles are uninstalled, this
- * is also a bundle {@link EventHook}.
+ * A bundle {@link CollisionHook} that contains a set of bundles that are allowed to collide with bundles
+ * that are about to be installed. This class also implements a {@link FindHook} to provide a consistent
+ * view of bundles such that the two sets of duplicate bundles are invisible to each other.
+ * In order to clean up when bundles are uninstalled, this is also a bundle {@link EventHook}.
*
* Thread safe
*
@@ -87,9 +88,6 @@ public class BundleCollisionHook implements CollisionHook, EventHook, FindHook {
* If the given context represents one of the allowed duplicates, this method filters out all bundles
* that are duplicates of the allowed duplicates. Otherwise this method filters out the allowed duplicates,
* so they are not visible to other bundles.
- *
- * NOTE: This hook method is added for a consistent view of the installed bundles, but is not actively
- * used by jdisc. The OSGi framework does not use FindHooks when calculating bundle wiring.
*/
@Override
public synchronized void find(BundleContext context, Collection<Bundle> bundles) {