Remove unneeded SchemaService reference 99/51299/6
authorRobert Varga <rovarga@cisco.com>
Wed, 1 Feb 2017 12:58:45 +0000 (13:58 +0100)
committerTom Pantelis <tpanteli@brocade.com>
Fri, 10 Feb 2017 12:23:23 +0000 (12:23 +0000)
sal-remoterpc-connector no longer need SchemaService, hence do not
look it up.

Change-Id: I1493ca1bbe769ad1cff183cf4ff2263bd6aaef77
Signed-off-by: Robert Varga <rovarga@cisco.com>
opendaylight/md-sal/sal-remoterpc-connector/src/main/java/org/opendaylight/controller/remote/rpc/RemoteRpcProvider.java
opendaylight/md-sal/sal-remoterpc-connector/src/main/resources/org/opendaylight/blueprint/remote-rpc.xml

index a0e1f87..e4f6a21 100644 (file)
@@ -18,7 +18,6 @@ import org.opendaylight.controller.md.sal.dom.api.DOMRpcProviderService;
 import org.opendaylight.controller.md.sal.dom.api.DOMRpcService;
 import org.opendaylight.controller.sal.core.api.Broker;
 import org.opendaylight.controller.sal.core.api.Provider;
-import org.opendaylight.controller.sal.core.api.model.SchemaService;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
 
@@ -35,7 +34,6 @@ public class RemoteRpcProvider implements AutoCloseable, Provider {
     private final ActorSystem actorSystem;
 
     private DOMRpcService rpcService;
-    private SchemaService schemaService;
     private ActorRef rpcManager;
 
     public RemoteRpcProvider(final ActorSystem actorSystem, final DOMRpcProviderService rpcProvisionRegistry,
@@ -49,10 +47,6 @@ public class RemoteRpcProvider implements AutoCloseable, Provider {
         this.rpcService = rpcService;
     }
 
-    public void setSchemaService(final SchemaService schemaService) {
-        this.schemaService = schemaService;
-    }
-
     @Override
     public void close() {
         if (rpcManager != null) {
index 453c252..f12a289 100644 (file)
@@ -12,7 +12,6 @@
   </cm:property-placeholder>
 
   <reference id="actorSystemProvider" interface="org.opendaylight.controller.cluster.ActorSystemProvider" />
-  <reference id="schemaService" interface="org.opendaylight.controller.sal.core.api.model.SchemaService" />
   <reference id="domRpcService" interface="org.opendaylight.controller.md.sal.dom.api.DOMRpcService"/>
   <reference id="domRpcRegistry" interface="org.opendaylight.controller.md.sal.dom.api.DOMRpcProviderService"/>
 
@@ -32,7 +31,6 @@
     <argument ref="domRpcRegistry"/>
     <argument ref="actorSystem"/>
     <argument ref="remoteRpcProviderConfig"/>
-    <property name="schemaService" ref="schemaService"/>
     <property name="rpcService" ref="domRpcService"/>
   </bean>