Untangle BindingCodecContext/BindingNormalizedNodeCodecRegistry 39/88039/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Feb 2020 11:15:01 +0000 (12:15 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 25 Feb 2020 11:16:18 +0000 (12:16 +0100)
commit7a03daabcdf60715ef565a7590d1b2c96c2d76fc
tree96da376f61aebbb2de875d635b3b3c6fd9c37019
parentc98e18786bb47a5ef91f032d11375b09ac524feb
Untangle BindingCodecContext/BindingNormalizedNodeCodecRegistry

The relationship here should be clear -- a BindingCodecContext is
self-contained and should not be subject to dynamism. The registry
maintains a 'current' codec.

Achieving this is very simple -- just do not perform upcalls to
Registry when we are looking for a streamer, it would just loop
back to BindingCodecContext and we want to be consistent, i.e. do
not try to upcall to a different BindingCodecContext.

JIRA: MDSAL-392
Change-Id: I720738f122ba89974e32c91ed8c7f3a059c21690
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/BindingCodecContext.java
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/BindingNormalizedNodeCodecRegistry.java
binding/mdsal-binding-dom-codec/src/main/java/org/opendaylight/mdsal/binding/dom/codec/impl/DefaultBindingCodecTreeFactory.java