From f93415dd8b3719b380b4295ab364420b9bf3d927 Mon Sep 17 00:00:00 2001 From: Marek Gradzki Date: Mon, 11 Apr 2016 08:56:06 +0200 Subject: HONEYCOMB-34: Config tree initialization using ModifiableDataTree dependency Change-Id: I9fa6119a92cc1979ed6f3364bb74e856a7a712c5 Signed-off-by: Marek Gradzki --- .../main/java/io/fd/honeycomb/v3po/data/ModifiableDataTree.java | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'v3po/data-api/src/main/java') 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 @@ -35,6 +35,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. * -- cgit 1.2.3-korg