You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicemix.apache.org by gn...@apache.org on 2009/03/25 16:15:28 UTC

svn commit: r758300 - /servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/servicemix/kernel/gshell/osgi/SpringApplicationListener.java

Author: gnodet
Date: Wed Mar 25 15:15:22 2009
New Revision: 758300

URL: http://svn.apache.org/viewvc?rev=758300&view=rev
Log:
SMX4KNL-254: In the osgi/list output, the spring state is only valid when the bundle is started and should not be displayed otherwise

Modified:
    servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/servicemix/kernel/gshell/osgi/SpringApplicationListener.java

Modified: servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/servicemix/kernel/gshell/osgi/SpringApplicationListener.java
URL: http://svn.apache.org/viewvc/servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/servicemix/kernel/gshell/osgi/SpringApplicationListener.java?rev=758300&r1=758299&r2=758300&view=diff
==============================================================================
--- servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/servicemix/kernel/gshell/osgi/SpringApplicationListener.java (original)
+++ servicemix/smx4/kernel/trunk/gshell/gshell-osgi/src/main/java/org/apache/servicemix/kernel/gshell/osgi/SpringApplicationListener.java Wed Mar 25 15:15:22 2009
@@ -58,7 +58,7 @@
 
     public SpringState getSpringState(Bundle bundle) {
         SpringState state = states.get(bundle.getBundleId());
-        if (state == null) {
+        if (state == null || bundle.getState() != Bundle.ACTIVE) {
             state = SpringState.Unknown;
         }
         return state;