X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=blobdiff_plain;f=opendaylight%2Fmd-sal%2Fsal-binding-broker%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fcontroller%2Fmd%2Fsal%2Fbinding%2Fimpl%2FLazySerializedDOMNotification.java;h=9ba6885c758c9c9559c8b5b8c0f323fb7004de7d;hp=e0cc4d4fa03f5e48dddea168cfbd9e715a828771;hb=3ec97cd0a86ad1b79f6854dc6924eb7b06e359a3;hpb=9f1f923d51b8fe8df4ec570055c3d39eb79e8af6 diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/LazySerializedDOMNotification.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/LazySerializedDOMNotification.java index e0cc4d4fa0..9ba6885c75 100644 --- a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/LazySerializedDOMNotification.java +++ b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/LazySerializedDOMNotification.java @@ -8,20 +8,22 @@ package org.opendaylight.controller.md.sal.binding.impl; import org.opendaylight.controller.md.sal.dom.api.DOMNotification; -import org.opendaylight.yangtools.binding.data.codec.api.BindingNormalizedNodeSerializer; +import org.opendaylight.mdsal.binding.dom.codec.api.BindingNormalizedNodeSerializer; +import org.opendaylight.mdsal.binding.spec.reflect.BindingReflections; import org.opendaylight.yangtools.yang.binding.Notification; -import org.opendaylight.yangtools.yang.binding.util.BindingReflections; import org.opendaylight.yangtools.yang.data.api.schema.ContainerNode; import org.opendaylight.yangtools.yang.model.api.SchemaPath; /** * Lazy serialized implementation of DOM Notification. * + *

* This implementation performs serialization of data, only if receiver * of notification actually accessed data from notification. * */ -class LazySerializedDOMNotification implements DOMNotification { +@Deprecated +public final class LazySerializedDOMNotification implements DOMNotification { private final BindingNormalizedNodeSerializer codec; private final Notification data; @@ -29,15 +31,15 @@ class LazySerializedDOMNotification implements DOMNotification { private ContainerNode domBody; - private LazySerializedDOMNotification(final BindingNormalizedNodeSerializer codec, final Notification data, final SchemaPath type) { - super(); + private LazySerializedDOMNotification(final BindingNormalizedNodeSerializer codec, final Notification data, + final SchemaPath type) { this.codec = codec; this.data = data; this.type = type; } static DOMNotification create(final BindingNormalizedNodeSerializer codec, final Notification data) { - final SchemaPath type = SchemaPath.create(true, BindingReflections.findQName(data.getImplementedInterface())); + final SchemaPath type = SchemaPath.create(true, BindingReflections.findQName(data.implementedInterface())); return new LazySerializedDOMNotification(codec, data, type); } @@ -54,7 +56,7 @@ class LazySerializedDOMNotification implements DOMNotification { return domBody; } - protected Notification getBindingData() { + public Notification getBindingData() { return data; } }