Uploaded image for project: 'mdsal'
  1. mdsal
  2. MDSAL-784

Generate binding codecs in a dedicated namespace


    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • 11.0.0
    • None
    • Binding runtime

      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" .

            rkashapov Ruslan Kashapov
            rovarga Robert Varga
            0 Vote for this issue
            1 Start watching this issue