From 02b2183a113214039611373f84352da4a5f57e2c Mon Sep 17 00:00:00 2001 From: Maros Marsalek Date: Fri, 13 May 2016 10:04:11 +0200 Subject: 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 --- .../honeycomb/v3po/translate/spi/write/RootWriterCustomizer.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'v3po/translate-spi/src/main/java/io') 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 { */ void writeCurrentAttributes(@Nonnull final InstanceIdentifier 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 { void updateCurrentAttributes(@Nonnull final InstanceIdentifier 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 { */ void deleteCurrentAttributes(@Nonnull final InstanceIdentifier id, @Nonnull final D dataBefore, - @Nonnull final Context writeContext) throws WriteFailedException; + @Nonnull final WriteContext writeContext) throws WriteFailedException; } -- cgit 1.2.3-korg