fix some karaf runtime errors
[transportpce.git] / tests / stubpce / src / main / java / org / opendaylight / transportpce / stubpce / impl / StubpceProvider.java
index 99163c31465a38f3ada1dd63216d13cc8fbd7b27..7377fa925bb69b7cef898ef20f98bc1440b59ac9 100644 (file)
@@ -48,8 +48,8 @@ public class StubpceProvider {
      */
     public void init() {
         LOG.info("StubpceProvider Session Initiated");
-        final StubpceImpl consumer = new StubpceImpl(notificationPublishService,dataBroker);
-        rpcRegistration = rpcRegistry.addRpcImplementation(StubpceService.class, consumer);
+        final StubpceImpl consumer = new StubpceImpl(this.notificationPublishService,this.dataBroker);
+        this.rpcRegistration = this.rpcRegistry.addRpcImplementation(StubpceService.class, consumer);
     }
 
     /**
@@ -57,7 +57,6 @@ public class StubpceProvider {
      */
     public void close() {
         LOG.info("StubpceProvider Closed");
-        rpcRegistration.close();
-        stubPcelistenerRegistration.close();
+        this.rpcRegistration.close();
     }
 }