Uploaded image for project: 'Active and Available Inventory'
  1. Active and Available Inventory
  2. AAI-2212

[Babel] Enhance Widget Mappings config file

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Done
    • Icon: Medium Medium
    • Dublin Release
    • Dublin Release
    • None
    • A&AI Sprint 21

      Move the Widget configuration data from the Java annotated Widget class hierarchy into the TOSCA type to Widget mappings configuration file.

      The abstract class org.onap.aai.babel.xml.generator.model.Widget has a hard-coded EnumMap named typeToWidget which stores the mappings from a Widget type to an internal Java bean.
      For example, the type FLAVOR is mapped to a FlavorWidget class.

      The individual Widget classes store a name value (used to find the Widget's UUID) and also a data-delete flag (used to generate the XML output). These values are not visible and can only be changed be recompiling the Babel service Java code.

      Move the name and flag values for each Widget into the existing Widget mappings configuration file which is loaded at start-up.

            mark.j.leonard mark.j.leonard
            mark.j.leonard mark.j.leonard
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: