diff options
author | Maros Marsalek <mmarsale@cisco.com> | 2016-05-13 10:04:11 +0200 |
---|---|---|
committer | Maros Marsalek <mmarsale@cisco.com> | 2016-05-17 17:13:08 +0200 |
commit | b613264e15f74cd594fb5cf02f0b602825b4936e (patch) | |
tree | 1bda7e1841f1d2db2d50f20d10af024a1eb4bd08 /v3po/translate-spi/src | |
parent | 9cf136674a8003ed225803971903acdf203dd655 (diff) |
Check expected interface type in sub-Interface nodes
+ Pass full WriteContext to the write customizers, making
them more flexible
Change-Id: I75c55aed02f9300eee20eabb4a3e84e294ed1e0f
Signed-off-by: Maros Marsalek <mmarsale@cisco.com>
Diffstat (limited to 'v3po/translate-spi/src')
-rw-r--r-- | v3po/translate-spi/src/main/java/io/fd/honeycomb/v3po/translate/spi/write/RootWriterCustomizer.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/v3po/translate-spi/src/main/java/io/fd/honeycomb/v3po/translate/spi/write/RootWriterCustomizer.java b/v3po/translate-spi/src/main/java/io/fd/honeycomb/v3po/translate/spi/write/RootWriterCustomizer.java index 2cdcff3fd..0ada8e9e5 100644 --- a/v3po/translate-spi/src/main/java/io/fd/honeycomb/v3po/translate/spi/write/RootWriterCustomizer.java +++ b/v3po/translate-spi/src/main/java/io/fd/honeycomb/v3po/translate/spi/write/RootWriterCustomizer.java @@ -17,7 +17,7 @@ package io.fd.honeycomb.v3po.translate.spi.write; import com.google.common.annotations.Beta; -import io.fd.honeycomb.v3po.translate.Context; +import io.fd.honeycomb.v3po.translate.write.WriteContext; import io.fd.honeycomb.v3po.translate.write.WriteFailedException; import javax.annotation.Nonnull; import org.opendaylight.yangtools.yang.binding.DataObject; @@ -42,7 +42,7 @@ public interface RootWriterCustomizer<D extends DataObject> { */ void writeCurrentAttributes(@Nonnull final InstanceIdentifier<D> id, @Nonnull final D dataAfter, - @Nonnull final Context writeContext) throws WriteFailedException; + @Nonnull final WriteContext writeContext) throws WriteFailedException; /** * Handle update operation. U from CRUD. @@ -57,7 +57,7 @@ public interface RootWriterCustomizer<D extends DataObject> { void updateCurrentAttributes(@Nonnull final InstanceIdentifier<D> id, @Nonnull final D dataBefore, @Nonnull final D dataAfter, - @Nonnull final Context writeContext) throws WriteFailedException; + @Nonnull final WriteContext writeContext) throws WriteFailedException; /** * Handle delete operation. D from CRUD. @@ -70,5 +70,5 @@ public interface RootWriterCustomizer<D extends DataObject> { */ void deleteCurrentAttributes(@Nonnull final InstanceIdentifier<D> id, @Nonnull final D dataBefore, - @Nonnull final Context writeContext) throws WriteFailedException; + @Nonnull final WriteContext writeContext) throws WriteFailedException; } |