Author: gnodet
Date: Thu Oct 15 12:35:37 2009
New Revision: 825477

URL: http://svn.apache.org/viewvc?rev=825477&view=rev
Log:
FELIX-1717: osgi:list column for spring is sometimes filled and sometimes not

Modified:
    
felix/trunk/karaf/shell/osgi/src/main/java/org/apache/felix/karaf/shell/osgi/SpringStateListenerFactory.java
    
felix/trunk/karaf/shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml

Modified: 
felix/trunk/karaf/shell/osgi/src/main/java/org/apache/felix/karaf/shell/osgi/SpringStateListenerFactory.java
URL: 
http://svn.apache.org/viewvc/felix/trunk/karaf/shell/osgi/src/main/java/org/apache/felix/karaf/shell/osgi/SpringStateListenerFactory.java?rev=825477&r1=825476&r2=825477&view=diff
==============================================================================
--- 
felix/trunk/karaf/shell/osgi/src/main/java/org/apache/felix/karaf/shell/osgi/SpringStateListenerFactory.java
 (original)
+++ 
felix/trunk/karaf/shell/osgi/src/main/java/org/apache/felix/karaf/shell/osgi/SpringStateListenerFactory.java
 Thu Oct 15 12:35:37 2009
@@ -45,6 +45,10 @@
         this.bundleContext = bundleContext;
     }
 
+    public void init() {
+        createListener();
+    }
+
     public void destroy() throws Exception {
         if (listener instanceof Destroyable) {
             ((Destroyable) listener).destroy();

Modified: 
felix/trunk/karaf/shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml
URL: 
http://svn.apache.org/viewvc/felix/trunk/karaf/shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml?rev=825477&r1=825476&r2=825477&view=diff
==============================================================================
--- 
felix/trunk/karaf/shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml
 (original)
+++ 
felix/trunk/karaf/shell/osgi/src/main/resources/OSGI-INF/blueprint/shell-osgi.xml
 Thu Oct 15 12:35:37 2009
@@ -74,7 +74,7 @@
     <bean id="blueprintListener" 
class="org.apache.felix.karaf.shell.osgi.BlueprintListener" />
     <service ref="blueprintListener" 
interface="org.osgi.service.blueprint.container.BlueprintListener" />
 
-    <bean id="springListener" 
class="org.apache.felix.karaf.shell.osgi.SpringStateListenerFactory" 
destroy-method="destroy">
+    <bean id="springListener" 
class="org.apache.felix.karaf.shell.osgi.SpringStateListenerFactory" 
init-method="init" destroy-method="destroy">
         <property name="bundleContext" ref="blueprintBundleContext" />
     </bean>
 


Reply via email to