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

Rework AbstractCodecFactory.codecFor()

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Medium
    • Resolution: Done
    • None
    • 7.0.0
    • data-util
    • None

    Description

      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.

       

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: