diff options
author | Jan Srnicek <jsrnicek@cisco.com> | 2017-10-09 13:01:52 +0200 |
---|---|---|
committer | Marek Gradzki <mgradzki@cisco.com> | 2017-11-06 05:20:50 +0000 |
commit | 269d3d44bdeacd543bdf67fe555f745db350dc58 (patch) | |
tree | f1b9638cacd1663e9e104cfe7c28466ca1f149f9 | |
parent | afc8a4633b0a43173dc0bdba5f678148ae7e58a7 (diff) |
HONEYCOMB-359 - CollectingWriterBuilder support for wildcarded writers
requires https://gerrit.fd.io/r/#/c/8434/
Change-Id: I226192776a4285ee498d72fd000051d29ad6a974
Signed-off-by: Jan Srnicek <jsrnicek@cisco.com>
-rw-r--r-- | vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CollectingWriterBuilder.java | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CollectingWriterBuilder.java b/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CollectingWriterBuilder.java index 6abb6a80b..cf7855ff0 100644 --- a/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CollectingWriterBuilder.java +++ b/vpp-integration/api-docs/core/src/main/java/io/fd/hc2vpp/docs/core/CollectingWriterBuilder.java @@ -66,6 +66,12 @@ public class CollectingWriterBuilder implements ModifiableWriterRegistryBuilder } @Override + public ModifiableSubtreeManagerRegistryBuilder<Writer<? extends DataObject>> wildcardedSubtreeAdd(@Nonnull Writer<? extends DataObject> handler) { + writeHandlers.add(new WriteHandler(handler)); + return this; + } + + @Override public ModifiableSubtreeManagerRegistryBuilder<Writer<? extends DataObject>> addBefore( @Nonnull Writer<? extends DataObject> handler, @Nonnull InstanceIdentifier<?> relatedType) { addHandler(handler, Collections.singleton(relatedType)); @@ -80,11 +86,23 @@ public class CollectingWriterBuilder implements ModifiableWriterRegistryBuilder } @Override + public ModifiableSubtreeManagerRegistryBuilder<Writer<? extends DataObject>> wildcardedSubtreeAddBefore(@Nonnull Writer<? extends DataObject> handler, @Nonnull InstanceIdentifier<?> relatedType) { + writeHandlers.add(new WriteHandler(handler)); + return this; + } + + @Override + public ModifiableSubtreeManagerRegistryBuilder<Writer<? extends DataObject>> wildcardedSubtreeAddBefore(@Nonnull Writer<? extends DataObject> handler, @Nonnull Collection<InstanceIdentifier<?>> relatedTypes) { + writeHandlers.add(new WriteHandler(handler)); + return this; + } + + @Override public ModifiableSubtreeManagerRegistryBuilder<Writer<? extends DataObject>> subtreeAddBefore( @Nonnull Set<InstanceIdentifier<?>> handledChildren, @Nonnull Writer<? extends DataObject> handler, @Nonnull InstanceIdentifier<?> relatedType) { addHandler(handler, handledChildren); - return null; + return this; } @Override @@ -110,6 +128,18 @@ public class CollectingWriterBuilder implements ModifiableWriterRegistryBuilder } @Override + public ModifiableSubtreeManagerRegistryBuilder<Writer<? extends DataObject>> wildcardedSubtreeAddAfter(@Nonnull Writer<? extends DataObject> handler, @Nonnull InstanceIdentifier<?> relatedType) { + writeHandlers.add(new WriteHandler(handler)); + return this; + } + + @Override + public ModifiableSubtreeManagerRegistryBuilder<Writer<? extends DataObject>> wildcardedSubtreeAddAfter(@Nonnull Writer<? extends DataObject> handler, @Nonnull Collection<InstanceIdentifier<?>> relatedTypes) { + writeHandlers.add(new WriteHandler(handler)); + return this; + } + + @Override public ModifiableSubtreeManagerRegistryBuilder<Writer<? extends DataObject>> subtreeAddAfter( @Nonnull Set<InstanceIdentifier<?>> handledChildren, @Nonnull Writer<? extends DataObject> handler, @Nonnull InstanceIdentifier<?> relatedType) { |