geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From xuhaih...@apache.org
Subject svn commit: r1061667 - /geronimo/server/branches/3.0-M2/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/DependencyManager.java
Date Fri, 21 Jan 2011 07:56:46 GMT
Author: xuhaihong
Date: Fri Jan 21 07:56:45 2011
New Revision: 1061667

URL: http://svn.apache.org/viewvc?rev=1061667&view=rev
Log:
Make sure we could build the dependency tree after the first start, as we will not receive
INSTALLED event

Modified:
    geronimo/server/branches/3.0-M2/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/DependencyManager.java

Modified: geronimo/server/branches/3.0-M2/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/DependencyManager.java
URL: http://svn.apache.org/viewvc/geronimo/server/branches/3.0-M2/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/DependencyManager.java?rev=1061667&r1=1061666&r2=1061667&view=diff
==============================================================================
--- geronimo/server/branches/3.0-M2/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/DependencyManager.java
(original)
+++ geronimo/server/branches/3.0-M2/framework/modules/geronimo-system/src/main/java/org/apache/geronimo/system/configuration/DependencyManager.java
Fri Jan 21 07:56:45 2011
@@ -96,7 +96,7 @@ public class DependencyManager implement
         repositoryAdmin = ref == null? null: (RepositoryAdmin) bundleContext.getService(ref);
         //init installed bundles
         for (Bundle bundle : bundleContext.getBundles()) {
-            addArtifactBundleEntry(bundle);
+            installed(bundle);
         }
         //Check the car who loads me ...
         try {
@@ -118,7 +118,8 @@ public class DependencyManager implement
 
     public void bundleChanged(BundleEvent bundleEvent) {
         int eventType = bundleEvent.getType();
-        if (eventType == BundleEvent.INSTALLED) {
+        //TODO Need to optimize the codes, as we will not receive the INSTALLED event after
the cache is created
+        if (eventType == BundleEvent.INSTALLED || eventType == BundleEvent.RESOLVED) {
             installed(bundleEvent.getBundle());
         } else if (eventType == BundleEvent.STARTING) {
             starting(bundleEvent.getBundle());



Mime
View raw message