Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2011-02-04 09:05:09 -0500
committerGlyn Normington2011-02-04 09:05:09 -0500
commitbe0ddcd9d3c731774d7ac665b211ac05514ef0b7 (patch)
tree750903c129890e783b150fb1a558141a2ea677d6 /org.eclipse.virgo.kernel.userregionfactory
parent7f3abd9599a8c8f3fb2a363478002d8efa5d59fd (diff)
downloadorg.eclipse.virgo.kernel-be0ddcd9d3c731774d7ac665b211ac05514ef0b7.tar.gz
org.eclipse.virgo.kernel-be0ddcd9d3c731774d7ac665b211ac05514ef0b7.tar.xz
org.eclipse.virgo.kernel-be0ddcd9d3c731774d7ac665b211ac05514ef0b7.zip
bug 330776: move region creation into digraph
Diffstat (limited to 'org.eclipse.virgo.kernel.userregionfactory')
-rw-r--r--org.eclipse.virgo.kernel.userregionfactory/src/main/java/org/eclipse/virgo/kernel/userregionfactory/Activator.java4
1 files changed, 1 insertions, 3 deletions
diff --git a/org.eclipse.virgo.kernel.userregionfactory/src/main/java/org/eclipse/virgo/kernel/userregionfactory/Activator.java b/org.eclipse.virgo.kernel.userregionfactory/src/main/java/org/eclipse/virgo/kernel/userregionfactory/Activator.java
index f65be64a..999acc52 100644
--- a/org.eclipse.virgo.kernel.userregionfactory/src/main/java/org/eclipse/virgo/kernel/userregionfactory/Activator.java
+++ b/org.eclipse.virgo.kernel.userregionfactory/src/main/java/org/eclipse/virgo/kernel/userregionfactory/Activator.java
@@ -27,7 +27,6 @@ import org.eclipse.virgo.kernel.core.Shutdown;
import org.eclipse.virgo.kernel.osgi.framework.OsgiFrameworkLogEvents;
import org.eclipse.virgo.kernel.osgi.framework.OsgiFrameworkUtils;
import org.eclipse.virgo.kernel.osgi.framework.OsgiServiceHolder;
-import org.eclipse.virgo.kernel.osgi.region.BundleIdBasedRegion;
import org.eclipse.virgo.kernel.osgi.region.Region;
import org.eclipse.virgo.kernel.osgi.region.RegionDigraph;
import org.eclipse.virgo.kernel.osgi.region.RegionFilter;
@@ -144,8 +143,7 @@ public final class Activator implements BundleActivator {
Region kernelRegion = getKernelRegion(regionDigraph);
kernelRegion.removeBundle(userRegionFactoryBundle);
- Region userRegion = new BundleIdBasedRegion(REGION_USER, regionDigraph, systemBundleContext, regionDigraph.getThreadLocal());
- regionDigraph.addRegion(userRegion);
+ Region userRegion = regionDigraph.createRegion(REGION_USER);
userRegion.addBundle(userRegionFactoryBundle);
RegionFilter kernelFilter = createKernelFilter(systemBundleContext);

Back to the top