Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-1831

Build XML parser from a resource's pathElement

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.0.0.Alpha9
    • 3.0.0.Alpha8
    • Management
    • None

      The current PersistentResourceXMLBuilder API requires to pass a ResourceDefinition to build the XML representation to parse and marshall. This requires to provides static ResourceDefinition which may be impratical if the resource model can be affected by the runtime state.

      The PersistentResourceXMLDescription only relies on the resourceDefinition's pathElement to know the "name" of the resource. The list of attributes to map to XML is provided explicitly to the builder.

      The PersistentResourceXMLBuilder API should be modified to use only a PathElement and remove its reference to resourceDefinition.
      For compatibility the current builder method with PersistentResourceDefinition must be kept and delegate to the new one.

              tomazcerar Tomaž Cerar (Inactive)
              jmesnil1@redhat.com Jeff Mesnil
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: