Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlyn Normington2011-02-04 04:39:51 -0500
committerGlyn Normington2011-02-04 04:39:51 -0500
commit7f3abd9599a8c8f3fb2a363478002d8efa5d59fd (patch)
tree65ef8fea734e543b0c8aa70e0cd4d807a8cc594f /org.eclipse.virgo.kernel.userregionfactory
parent1f610333e7a414e248a19675248a7df45eb9bfb8 (diff)
downloadorg.eclipse.virgo.kernel-7f3abd9599a8c8f3fb2a363478002d8efa5d59fd.tar.gz
org.eclipse.virgo.kernel-7f3abd9599a8c8f3fb2a363478002d8efa5d59fd.tar.xz
org.eclipse.virgo.kernel-7f3abd9599a8c8f3fb2a363478002d8efa5d59fd.zip
bug 330776: use thread local to pass install region to bundle event hook
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.java6
1 files changed, 3 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 d3b35fad..f65be64a 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
@@ -140,11 +140,11 @@ public final class Activator implements BundleActivator {
BundleContext systemBundleContext = getSystemBundleContext();
Bundle userRegionFactoryBundle = userRegionBundleContext.getBundle();
-
+
Region kernelRegion = getKernelRegion(regionDigraph);
kernelRegion.removeBundle(userRegionFactoryBundle);
- Region userRegion = new BundleIdBasedRegion(REGION_USER, regionDigraph, systemBundleContext);
+ Region userRegion = new BundleIdBasedRegion(REGION_USER, regionDigraph, systemBundleContext, regionDigraph.getThreadLocal());
regionDigraph.addRegion(userRegion);
userRegion.addBundle(userRegionFactoryBundle);
@@ -221,7 +221,7 @@ public final class Activator implements BundleActivator {
expandedUserRegionImportsProperty = PackageImportWildcardExpander.expandPackageImportsWildcards(userRegionImportsProperty,
systemBundleContext);
}
-
+
UserRegionPackageImportPolicy userRegionPackageImportPolicy = new UserRegionPackageImportPolicy(expandedUserRegionImportsProperty);
return userRegionPackageImportPolicy;
}

Back to the top