[jboss-osgi-commits] JBoss-OSGI SVN: r97328 - projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle.

jboss-osgi-commits at lists.jboss.org jboss-osgi-commits at lists.jboss.org
Wed Dec 2 17:08:19 EST 2009


Author: alesj
Date: 2009-12-02 17:08:19 -0500 (Wed, 02 Dec 2009)
New Revision: 97328

Modified:
   projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java
Log:
Synch on unit.

Modified: projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java
===================================================================
--- projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java	2009-12-02 22:02:38 UTC (rev 97327)
+++ projects/jboss-osgi/trunk/reactor/framework/src/main/java/org/jboss/osgi/framework/bundle/OSGiBundleManager.java	2009-12-02 22:08:19 UTC (rev 97328)
@@ -151,7 +151,7 @@
    private MainDeployerStructure deployerStructure;
 
    /** The deployment registry */
-   private final DeploymentRegistry registry;
+   private DeploymentRegistry registry;
 
    /** The instance metadata factory */
    private MetaDataRetrievalFactory factory;
@@ -366,7 +366,7 @@
       DeploymentUnit unit = registry.getDeployment(context);
       if (unit != null)
       {
-         synchronized (registry)
+         synchronized (unit)
          {
             OSGiBundleState bundleState = unit.getAttachment(OSGiBundleState.class);
             if (bundleState == null)



More information about the jboss-osgi-commits mailing list