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

Java Bindings: use cached QNames

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Resolution: Done
    • None
    • None
    • None
    • None
    • Operating System: All
      Platform: All

    Description

      Each generated class carries a QNAME element inside it, which can be used when interacting with the data in binding independent form.

      The code looks like this:

      public static final QName QNAME = org.opendaylight.yangtools.yang.common.QName.create("urn:opendaylight:params:xml:ns:yang:bgp-rib","2013-09-25","tables");;

      With advent of cached QName/QNameModule references, we can actually use these to pre-populate cache, such that most of our comparisons end up referencing the same QNameModule/QName object, thus speeding things up.

      Attachments

        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:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: