Make LogicalDatastoreType a WritableObject 23/82923/1
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 3 Jul 2019 22:37:53 +0000 (00:37 +0200)
committerRobert Varga <nite@hq.sk>
Wed, 3 Jul 2019 23:55:05 +0000 (23:55 +0000)
commit882546e60cbde3102f9f2734d59dec7ed2eb5444
tree61973967b0144872349f7ac3b62d5fa4bf3f09b5
parent24eee4feb4d07f4179f60d47da4677b75073f1a7
Make LogicalDatastoreType a WritableObject

This is a low-cardinality enum, which we need to serialize quite
often. Make it a simple WritableObject, so users can get common
handling. One specific user is sal-remoterpc-connector, which
needs to be able to serialize DOMDataTreeIdentifier.

JIRA: CONTROLLER-1894
Change-Id: Iee4610e093639629039a2e21ab1cfc852b756169
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit b0c200e4da8fced37726872197c510766a7ed4fd)
common/mdsal-common-api/src/main/java/org/opendaylight/mdsal/common/api/LogicalDatastoreType.java