change signature of runtime Activator's protected newProcessor() method to aid any future package renaming (FELIX-2441)


git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@959002 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/activator/Activator.java b/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/activator/Activator.java
index 2e8246c..0d9f286 100644
--- a/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/activator/Activator.java
+++ b/gogo/runtime/src/main/java/org/apache/felix/gogo/runtime/activator/Activator.java
@@ -38,16 +38,17 @@
 
 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 @@
         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();