diff options
author | 2016-04-11 08:56:06 +0200 | |
---|---|---|
committer | 2016-04-12 11:04:11 +0200 | |
commit | 69b1d68a74561f786805809ad44052ba6cfe8eb7 (patch) | |
tree | fc081044e3711274c0cc56ed2a4f84de99d04c6f /v3po/data-api/src/main/java | |
parent | 077fec893ed63f17bb4c9b2952d27075fa50f737 (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/src/main/java')
-rw-r--r-- | v3po/data-api/src/main/java/io/fd/honeycomb/v3po/data/ModifiableDataTree.java | 8 |
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. |