You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@felix.apache.org by gn...@apache.org on 2009/10/15 14:35:38 UTC

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

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>