Split out restconf-mdsal-spi 31/112731/9
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 23 Jul 2024 16:00:31 +0000 (18:00 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 23 Jul 2024 19:53:10 +0000 (21:53 +0200)
commita0679d0bbb04c4ef3da1472ad7c081a51736ad3a
tree8aebd514f64a82c2aea19e18890b30f6382ff7ea
parent3f81cd1aea6479e9f4b4221cc67bf6c023e64868
Split out restconf-mdsal-spi

We have a numbner of SPI-level constructs lurking in
restconf-server-mdsal. Move them out to restconf-mdsal-spi.

Also introduce DOMServerStrategy, which is a DOMService carrier of a
ServerStrategy.

JIRA: NETCONF-773
Change-Id: I034de08684f1de38022b4daf31a1730278ca3594
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
55 files changed:
apps/odl-device-notification/pom.xml
apps/odl-device-notification/src/main/java/org/opendaylight/netconf/odl/device/notification/DeviceNotificationSource.java
apps/sal-remote-impl/pom.xml
apps/sal-remote-impl/src/main/java/org/opendaylight/netconf/sal/remote/impl/CreateNotificationStreamRpc.java
artifacts/pom.xml
plugins/pom.xml
plugins/restconf-mdsal-spi/pom.xml [new file with mode: 0644]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/AbstractNotificationSource.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/streams/AbstractNotificationSource.java with 97% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/DOMRpcResultCallback.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/DOMRpcResultCallback.java with 98% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/DOMServerActionOperations.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/MdsalServerActionOperations.java with 89% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/DOMServerModulesOperations.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/MdsalServerModulesOperations.java with 82% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/DOMServerRpcOperations.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/MdsalServerRpcOperations.java with 91% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/DOMServerStrategy.java [new file with mode: 0644]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/JSONNotificationFormatter.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/streams/JSONNotificationFormatter.java with 98% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/NotificationFormatter.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/streams/NotificationFormatter.java with 97% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/NotificationFormatterFactory.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/streams/NotificationFormatterFactory.java with 92% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/NotificationSource.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/streams/NotificationSource.java with 97% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/XMLNotificationFormatter.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/streams/XMLNotificationFormatter.java with 98% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/data/ExistenceCheck.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/data/ExistenceCheck.java with 98% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/data/MdsalNormalizedNodeWriterFactory.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/data/MdsalNormalizedNodeWriterFactory.java with 97% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/data/MdsalRestconfStrategy.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/data/MdsalRestconfStrategy.java with 99% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/data/MdsalRestconfTransaction.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/data/MdsalRestconfTransaction.java with 97% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/data/NetconfRestconfStrategy.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/data/NetconfRestconfStrategy.java with 99% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/data/NetconfRestconfTransaction.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/data/NetconfRestconfTransaction.java with 99% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/data/RestconfStrategy.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/data/RestconfStrategy.java with 99% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/data/RestconfTransaction.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/data/RestconfTransaction.java with 98% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/data/package-info.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/data/package-info.java with 89% similarity]
plugins/restconf-mdsal-spi/src/main/java/org/opendaylight/restconf/mdsal/spi/package-info.java [moved from plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/streams/package-info.java with 90% similarity]
plugins/restconf-server-mdsal/pom.xml
plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/MdsalMountPointResolver.java
plugins/restconf-server-mdsal/src/main/java/org/opendaylight/restconf/server/mdsal/MdsalRestconfServer.java
protocol/netconf-server/pom.xml
protocol/restconf-api/pom.xml
protocol/restconf-server-api/pom.xml
protocol/restconf-server-spi/pom.xml
restconf/restconf-nb/pom.xml
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/mdsal/spi/JSONNotificationFormatterTest.java [moved from restconf/restconf-nb/src/test/java/org/opendaylight/restconf/server/mdsal/streams/JSONNotificationFormatterTest.java with 99% similarity]
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/mdsal/spi/XMLNotificationFormatterTest.java [moved from restconf/restconf-nb/src/test/java/org/opendaylight/restconf/server/mdsal/streams/XMLNotificationFormatterTest.java with 99% similarity]
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/mdsal/spi/data/AbstractFieldsTranslatorTest.java [moved from restconf/restconf-nb/src/test/java/org/opendaylight/restconf/server/mdsal/data/AbstractFieldsTranslatorTest.java with 99% similarity]
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/mdsal/spi/data/AbstractRestconfStrategyTest.java [moved from restconf/restconf-nb/src/test/java/org/opendaylight/restconf/server/mdsal/data/AbstractRestconfStrategyTest.java with 99% similarity]
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/mdsal/spi/data/MdsalFieldsParamTest.java [moved from restconf/restconf-nb/src/test/java/org/opendaylight/restconf/server/mdsal/data/MdsalFieldsParamTest.java with 99% similarity]
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/mdsal/spi/data/MdsalRestconfStrategyTest.java [moved from restconf/restconf-nb/src/test/java/org/opendaylight/restconf/server/mdsal/data/MdsalRestconfStrategyTest.java with 97% similarity]
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/mdsal/spi/data/NetconfFieldsParamTest.java [moved from restconf/restconf-nb/src/test/java/org/opendaylight/restconf/server/mdsal/data/NetconfFieldsParamTest.java with 99% similarity]
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/mdsal/spi/data/NetconfRestconfStrategyTest.java [moved from restconf/restconf-nb/src/test/java/org/opendaylight/restconf/server/mdsal/data/NetconfRestconfStrategyTest.java with 99% similarity]
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/jaxrs/RestconfDataDeleteTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/jaxrs/RestconfDataGetTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/jaxrs/RestconfDataPutTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/jaxrs/RestconfModulesGetTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/jaxrs/RestconfOperationsGetTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/jaxrs/RestconfOperationsPostTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/databind/AbstractPatchBodyTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/databind/AbstractResourceBodyTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/databind/JsonPatchBodyMountPointTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/databind/XmlPatchBodyMountPointTest.java
restconf/restconf-nb/src/test/java/org/opendaylight/restconf/nb/rfc8040/databind/XmlResourceBodyTest.java