summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2011-03-07 23:33:25 (EST)
committer Glyn Normington2011-03-07 23:33:25 (EST)
commitdc7d216df31491d88c3591cf47e76ed754b89a5b (patch)
tree914900c21b5f5e426c5f16bf85274056d8c211ef
parent2ff023daf9895f719a42ce74ca4d1cf6729b03ba (diff)
downloadorg.eclipse.virgo.kernel-dc7d216df31491d88c3591cf47e76ed754b89a5b.zip
org.eclipse.virgo.kernel-dc7d216df31491d88c3591cf47e76ed754b89a5b.tar.gz
org.eclipse.virgo.kernel-dc7d216df31491d88c3591cf47e76ed754b89a5b.tar.bz2
Fix service find hook to share services from shared bundles
-rw-r--r--org.eclipse.virgo.kernel.osgi/src/test/java/org/eclipse/virgo/kernel/osgi/region/hook/RegionServiceFindHookTests.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/org.eclipse.virgo.kernel.osgi/src/test/java/org/eclipse/virgo/kernel/osgi/region/hook/RegionServiceFindHookTests.java b/org.eclipse.virgo.kernel.osgi/src/test/java/org/eclipse/virgo/kernel/osgi/region/hook/RegionServiceFindHookTests.java
index bfdd0f5..7f92bb5 100644
--- a/org.eclipse.virgo.kernel.osgi/src/test/java/org/eclipse/virgo/kernel/osgi/region/hook/RegionServiceFindHookTests.java
+++ b/org.eclipse.virgo.kernel.osgi/src/test/java/org/eclipse/virgo/kernel/osgi/region/hook/RegionServiceFindHookTests.java
@@ -95,13 +95,7 @@ public class RegionServiceFindHookTests {
stubBundleContext.addInstalledBundle(stubSystemBundle);
this.threadLocal = new ThreadLocal<Region>();
this.digraph = new StandardRegionDigraph(stubBundleContext, this.threadLocal);
- org.osgi.framework.hooks.bundle.FindHook mockFindHook = new org.osgi.framework.hooks.bundle.FindHook() {
- @Override
- public void find(BundleContext context, Collection<Bundle> bundles) {
- return;
- }
- };
- this.bundleFindHook = new RegionServiceFindHook(this.digraph, mockFindHook);
+ this.bundleFindHook = new RegionServiceFindHook(this.digraph);
this.candidates = new HashSet<ServiceReference<?>>();
// Create regions A, B, C, D containing bundles A, B, C, D, respectively.