Move SubscribeToStreamUtil to rests.services.impl 89/90989/4
authorRobert Varga <robert.varga@pantheon.tech>
Wed, 8 Jul 2020 12:53:33 +0000 (14:53 +0200)
committerRobert Varga <robert.varga@pantheon.tech>
Wed, 8 Jul 2020 15:16:10 +0000 (17:16 +0200)
commit2b68d50bc232318eb39fc033cab46878073f399f
tree9adf37829ab048e53a6ad11161c6a79e9ffebaf3
parent2a77e4e7796689dc731a06fa49458922a2c84e2a
Move SubscribeToStreamUtil to rests.services.impl

Overall structure of RestconfDataServiceImpl relying on a random
mix if 'util' classes is quite wrong, as demonstrated by
ReadDataTransactionUtil.readData(), which actually is very much
stream-specific and ends up *writing* data.

Start with SubscribeToStreamUtil, which pulls a chunk of utility
methods into rests/services/impl. This cleans up other utilities
and makes the package dependency graph a bit simpler.

Change-Id: Ia327182edde23364570f6f5d46044d3efe319fe2
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfDataServiceImpl.java
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/RestconfStreamsSubscriptionServiceImpl.java
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/services/impl/SubscribeToStreamUtil.java [moved from restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/utils/SubscribeToStreamUtil.java with 96% similarity]
restconf/restconf-nb-rfc8040/src/main/java/org/opendaylight/restconf/nb/rfc8040/rests/utils/ReadDataTransactionUtil.java