[MDSAL-784] Generate binding codecs in a dedicated namespace Created: 01/Nov/22  Updated: 24/Nov/22  Resolved: 24/Nov/22

Status: Resolved
Project: mdsal
Component/s: Binding runtime
Affects Version/s: None
Fix Version/s: 11.0.0

Type: Task Priority: Medium
Reporter: Robert Varga Assignee: Ruslan Kashapov
Resolution: Done Votes: 0
Labels: pt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

mdsal-binding-dom-codec is currently deriving its generated classes from generated interfaces. in AOT world this means we end up with a module conflict: public codegen classes are in the same package as related codec classes.
Allocate a Java package hierarchy to host the codecs, so that YANG-inferred names map to a codegen mapping (as they do now) and codec classes map to a separate hierarchy.
This boils down to eliminating CodecClassLoader.generateClass()'s 'suffix argument – the classes instead use a prefix different to BindingMapping.PACKAGE_PREFIX ("org.opendaylight.yang.gen.v1"), for example "org.opendaylight.yang.rt.v1" .


Generated at Wed Feb 07 20:10:58 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.