Add blueprint wiring to sal-remoterpc-connector
[controller.git] / opendaylight / md-sal / sal-remoterpc-connector / src / main / java / org / opendaylight / controller / remote / rpc / RemoteRpcProviderFactory.java
index af36b8a..c6ec928 100644 (file)
@@ -10,16 +10,11 @@ package org.opendaylight.controller.remote.rpc;
 
 import akka.actor.ActorSystem;
 import org.opendaylight.controller.md.sal.dom.api.DOMRpcProviderService;
-import org.opendaylight.controller.sal.core.api.Broker;
-import org.osgi.framework.BundleContext;
 
 public class RemoteRpcProviderFactory {
-    public static RemoteRpcProvider createInstance(final Broker broker, final BundleContext bundleContext,
+    public static RemoteRpcProvider createInstance(final DOMRpcProviderService rpcProviderService,
             final ActorSystem actorSystem, final RemoteRpcProviderConfig config) {
 
-        final RemoteRpcProvider rpcProvider = new RemoteRpcProvider(actorSystem, (DOMRpcProviderService) broker, config);
-
-        broker.registerProvider(rpcProvider);
-        return rpcProvider;
+        return new RemoteRpcProvider(actorSystem, rpcProviderService, config);
     }
 }