Uploaded image for project: 'yangtools'
  1. yangtools
  2. YANGTOOLS-1232

Rework AbstractCodecFactory.codecFor()

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Medium Medium
    • 7.0.0
    • None
    • data-util
    • None

      AbstractCodecFactory performs leafref resolution based on an 'S extends TypeAware & SchemaNode' – leading to a call to SchemaContextUtil.getBaseTypeForLeafRef().

      YANGTOOLS-1229 deals with properly moving that method to SchemaInferenceStack, effectively resulting in codecFor() requiring it.
      Since SchemaInferenceStack is a mutable structure, we do not want to deal with its lifecycle, but rather have callers of codecFor() provide a resolution callback – and they will provide an appropriate SchemaInferenceStack-based implementation.

       

            rovarga Robert Varga
            rovarga Robert Varga
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: