felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From db...@apache.org
Subject svn commit: r959002 - /felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/activator/Activator.java
Date Tue, 29 Jun 2010 15:00:44 GMT
Author: dbaum
Date: Tue Jun 29 15:00:44 2010
New Revision: 959002

URL: http://svn.apache.org/viewvc?rev=959002&view=rev
Log:
change signature of runtime Activator's protected newProcessor() method to aid any future
package renaming (FELIX-2441)

Modified:
    felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/activator/Activator.java

Modified: felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/activator/Activator.java
URL: http://svn.apache.org/viewvc/felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/activator/Activator.java?rev=959002&r1=959001&r2=959002&view=diff
==============================================================================
--- felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/activator/Activator.java
(original)
+++ felix/trunk/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/activator/Activator.java
Tue Jun 29 15:00:44 2010
@@ -38,16 +38,17 @@ import org.osgi.util.tracker.ServiceTrac
 
 public class Activator implements BundleActivator
 {
-    private CommandProcessorImpl processor;
+    protected CommandProcessorImpl processor;
     private ThreadIOImpl threadio;
     private ServiceTracker commandTracker;
     private ServiceTracker converterTracker;
     private ServiceRegistration processorRegistration;
     private ServiceRegistration threadioRegistration;
     
-    protected CommandProcessorImpl newProcessor(ThreadIO tio, BundleContext context)
+    protected ServiceRegistration newProcessor(ThreadIO tio, BundleContext context)
     {
-        return new CommandProcessorImpl(tio, context);
+        processor = new CommandProcessorImpl(tio, context);
+        return context.registerService(CommandProcessor.class.getName(), processor, null);
     }
 
     public void start(final BundleContext context) throws Exception
@@ -57,9 +58,7 @@ public class Activator implements Bundle
         threadioRegistration = context.registerService(ThreadIO.class.getName(),
             threadio, null);
 
-        processor = newProcessor(threadio, context);
-        processorRegistration = context.registerService(CommandProcessor.class.getName(),
-            processor, null);
+        processorRegistration = newProcessor(threadio, context);
         
         commandTracker = trackOSGiCommands(context);
         commandTracker.open();



Mime
View raw message