Switch to mdsal codec APIs 12/62612/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 4 Sep 2017 11:34:00 +0000 (13:34 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Mon, 4 Sep 2017 13:35:52 +0000 (13:35 +0000)
Codec APIs with yangtools in their package are going away, make sure
we are ready for that.

Change-Id: I5515cf455df9cbdd746153a515e7102f11f02a80
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/FunctionalNotificationListenerAdapter.java
opendaylight/md-sal/sal-binding-broker/src/main/resources/org/opendaylight/blueprint/binding-broker.xml
opendaylight/md-sal/sal-binding-config/src/main/yang/opendaylight-md-sal-binding.yang

index 94c2197..0d85ef9 100644 (file)
@@ -12,7 +12,7 @@ import org.opendaylight.controller.md.sal.binding.impl.LazySerializedDOMNotifica
 import org.opendaylight.controller.md.sal.dom.api.DOMNotification;
 import org.opendaylight.controller.md.sal.dom.api.DOMNotificationListener;
 import org.opendaylight.controller.sal.binding.api.NotificationListener;
-import org.opendaylight.yangtools.binding.data.codec.api.BindingNormalizedNodeSerializer;
+import org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer;
 import org.opendaylight.yangtools.yang.binding.Notification;
 
 final class FunctionalNotificationListenerAdapter<N extends Notification> implements DOMNotificationListener {
index 4f88faa..946ce32 100644 (file)
@@ -21,8 +21,6 @@
 
   <service ref="mappingCodec" odl:type="default">
     <interfaces>
-      <value>org.opendaylight.yangtools.binding.data.codec.api.BindingCodecTreeFactory</value>
-      <value>org.opendaylight.yangtools.binding.data.codec.api.BindingNormalizedNodeSerializer</value>
       <value>org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer</value>
       <value>org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactory</value>
     </interfaces>
index bd7244e..f52aa34 100644 (file)
@@ -38,13 +38,13 @@ module opendaylight-md-sal-binding {
 
     identity binding-codec-tree-factory {
         base "config:service-type";
-        config:java-class "org.opendaylight.yangtools.binding.data.codec.api.BindingCodecTreeFactory";
+        config:java-class "org.opendaylight.mdsal.binding.dom.codec.api.BindingCodecTreeFactory";
         config:disable-osgi-service-registration;
     }
 
     identity binding-normalized-node-serializer {
         base "config:service-type";
-        config:java-class "org.opendaylight.yangtools.binding.data.codec.api.BindingNormalizedNodeSerializer";
+        config:java-class "org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer";
         config:disable-osgi-service-registration;
     }
 

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.