summaryrefslogtreecommitdiffstats
path: root/v3po/data-api
diff options
context:
space:
mode:
authorMarek Gradzki <mgradzki@cisco.com>2016-04-11 08:56:06 +0200
committerMarek Gradzki <mgradzki@cisco.com>2016-04-12 11:04:11 +0200
commit69b1d68a74561f786805809ad44052ba6cfe8eb7 (patch)
treefc081044e3711274c0cc56ed2a4f84de99d04c6f /v3po/data-api
parent077fec893ed63f17bb4c9b2952d27075fa50f737 (diff)
HONEYCOMB-34: Config tree initialization using ModifiableDataTree dependency
Change-Id: I9fa6119a92cc1979ed6f3364bb74e856a7a712c5 Signed-off-by: Marek Gradzki <mgradzki@cisco.com>
Diffstat (limited to 'v3po/data-api')
-rw-r--r--v3po/data-api/src/main/java/io/fd/honeycomb/v3po/data/ModifiableDataTree.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/v3po/data-api/src/main/java/io/fd/honeycomb/v3po/data/ModifiableDataTree.java b/v3po/data-api/src/main/java/io/fd/honeycomb/v3po/data/ModifiableDataTree.java
index 8b21ddf24..a3b5c9c34 100644
--- a/v3po/data-api/src/main/java/io/fd/honeycomb/v3po/data/ModifiableDataTree.java
+++ b/v3po/data-api/src/main/java/io/fd/honeycomb/v3po/data/ModifiableDataTree.java
@@ -36,6 +36,14 @@ public interface ModifiableDataTree {
void modify(final DataTreeModification modification) throws DataValidationFailedException, TranslationException;
/**
+ * Initializes data tree using supplied modification.
+ *
+ * @param modification data tree modification
+ * @throws DataValidationFailedException if modification data is not valid
+ */
+ void initialize(final DataTreeModification modification) throws DataValidationFailedException;
+
+ /**
* Creates read-only snapshot of a ModifiableDataTree.
*
* @return Data tree snapshot.