incubator-aries-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lin...@apache.org
Subject svn commit: r933402 - /incubator/aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/SubsystemAdminImpl.java
Date Mon, 12 Apr 2010 20:27:47 GMT
Author: linsun
Date: Mon Apr 12 20:27:47 2010
New Revision: 933402

URL: http://svn.apache.org/viewvc?rev=933402&view=rev
Log:
emit resolved event when a subsystem is resolved

Modified:
    incubator/aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/SubsystemAdminImpl.java

Modified: incubator/aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/SubsystemAdminImpl.java
URL: http://svn.apache.org/viewvc/incubator/aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/SubsystemAdminImpl.java?rev=933402&r1=933401&r2=933402&view=diff
==============================================================================
--- incubator/aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/SubsystemAdminImpl.java
(original)
+++ incubator/aries/trunk/subsystem/subsystem-core/src/main/java/org/apache/aries/subsystem/core/internal/SubsystemAdminImpl.java
Mon Apr 12 20:27:47 2010
@@ -36,7 +36,6 @@ import org.osgi.framework.Bundle;
 import org.osgi.framework.BundleContext;
 import org.osgi.framework.BundleEvent;
 import org.osgi.framework.Constants;
-import org.osgi.framework.ServiceRegistration;
 import org.osgi.framework.SynchronousBundleListener;
 import org.osgi.framework.Version;
 import org.osgi.service.composite.CompositeAdmin;
@@ -100,6 +99,13 @@ public class SubsystemAdminImpl implemen
                     subsystems.put(s.getSubsystemId(), s);
                 }
             }
+            if (event.getType() == BundleEvent.RESOLVED) {
+                Subsystem s = isSubsystem(bundle);
+                if (s != null) {
+                    // emit the subsystem resolved event
+                    eventDispatcher.subsystemEvent(new SubsystemEvent(SubsystemEvent.Type.RESOLVED,
System.currentTimeMillis(), s));
+                }
+            }
         }
     }
 



Mime
View raw message