summaryrefslogtreecommitdiffstats
path: root/jdisc_core/src/main/java/com/yahoo/jdisc/application/OsgiFramework.java
diff options
context:
space:
mode:
Diffstat (limited to 'jdisc_core/src/main/java/com/yahoo/jdisc/application/OsgiFramework.java')
-rw-r--r--jdisc_core/src/main/java/com/yahoo/jdisc/application/OsgiFramework.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/jdisc_core/src/main/java/com/yahoo/jdisc/application/OsgiFramework.java b/jdisc_core/src/main/java/com/yahoo/jdisc/application/OsgiFramework.java
index f5346a21a4f..4dc59accee4 100644
--- a/jdisc_core/src/main/java/com/yahoo/jdisc/application/OsgiFramework.java
+++ b/jdisc_core/src/main/java/com/yahoo/jdisc/application/OsgiFramework.java
@@ -5,6 +5,7 @@ import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
import org.osgi.framework.BundleException;
+import java.util.Collection;
import java.util.List;
/**
@@ -13,6 +14,7 @@ import java.util.List;
* {@link BundleInstaller} since that provides common convenience methods.
*
* @author Simon Thoresen Hult
+ * @author gjoranv
*/
public interface OsgiFramework {
@@ -81,6 +83,20 @@ public interface OsgiFramework {
List<Bundle> bundles();
/**
+ * Returns all installed bundles that are visible to the requesting bundle. Bundle visibility
+ * is controlled via implementations of {@link org.osgi.framework.hooks.bundle.FindHook};
+ */
+ List<Bundle> getBundles(Bundle requestingBundle);
+
+ /**
+ * Allows this framework to install duplicates of the given collection of bundles. Duplicate detection
+ * is handled by the {@link com.yahoo.jdisc.core.BundleCollisionHook}.
+ *
+ * @param bundles The bundles to allow duplicates of
+ */
+ void allowDuplicateBundles(Collection<Bundle> bundles);
+
+ /**
* This method starts the framework instance. Before this method is called, any call to {@link
* #installBundle(String)} or {@link #bundles()} will generate a {@link NullPointerException}.
*