Add (DOM)DataTreeIdentifier serialization proxies 71/109271/1
authorRobert Varga <robert.varga@pantheon.tech>
Sat, 9 Dec 2023 13:18:03 +0000 (14:18 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Sun, 10 Dec 2023 10:43:00 +0000 (11:43 +0100)
commit9e23304d266d00210f1aeec57a99a1d8694caffe
tree139bc9d3064ad12d7d694edee34e64b41f3ad11e
parent7bfdc19dabf61f0e84ebc02b57385b5912d51a0a
Add (DOM)DataTreeIdentifier serialization proxies

Further evolution of these two classes will require allowing for two
distinct specializations.

In order to be able to do that, we need to disconnect them from their
serial form.

This patch instroduces serialization proxies, which know how to write
out and read in these objects without referencing their class name.

JIRA: MDSAL-845
Change-Id: I2b50d3aa5f752d6181dab991a5a8282b079b16df
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit 9286037f2852d197c4384511fce97c551e2b8dc3)
binding/mdsal-binding-api/src/main/java/org/opendaylight/mdsal/binding/api/DTIv1.java [new file with mode: 0644]
binding/mdsal-binding-api/src/test/java/org/opendaylight/mdsal/binding/api/DataTreeIdentifierTest.java
dom/mdsal-dom-api/src/main/java/org/opendaylight/mdsal/dom/api/DTIv1.java [new file with mode: 0644]
dom/mdsal-dom-api/src/test/java/org/opendaylight/mdsal/dom/api/DOMDataTreeIdentifierTest.java