Specialize RemoteDevice to NetconfMessage
[netconf.git] / netconf / sal-netconf-connector / src / main / java / org / opendaylight / netconf / sal / connect / api / RemoteDevice.java
index e4f45f64bc587d7e45833ce493eff5c7a3a66deb..6cb40237032bae9c9badfa842491f7baf1d5d05c 100644 (file)
@@ -7,10 +7,12 @@
  */
 package org.opendaylight.netconf.sal.connect.api;
 
+import org.opendaylight.netconf.api.NetconfMessage;
+
 /**
  * Remote device.
  */
-public interface RemoteDevice<PREF, M, LISTENER extends RemoteDeviceCommunicator<M>> {
+public interface RemoteDevice<PREF, LISTENER extends RemoteDeviceCommunicator> {
 
     void onRemoteSessionUp(PREF remoteSessionCapabilities, LISTENER listener);
 
@@ -18,5 +20,5 @@ public interface RemoteDevice<PREF, M, LISTENER extends RemoteDeviceCommunicator
 
     void onRemoteSessionFailed(Throwable throwable);
 
-    void onNotification(M notification);
+    void onNotification(NetconfMessage notification);
 }