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

PersistentResourceXMLDescription is hot garbage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 24.0.0.Beta3
    • XML Frameworks
    • None

    Description

      This class is very poorly written and needs a complete rewrite.

      e.g.

      • It is composed via a builder pattern, but the built objects are not immutable!!!
        • Want to create a PersistentResourceXMLDescription once, to be reused by multiple children?  Sorry, you can't.
      • The parser/writer implementations are spaghetti code
        • Methods are not symmetrical, e.g. methods enter/exit without fully reading/writing an XML block
      • It lacks support for common XML schema patterns
        • .e.g
        • <parent default="foo"><child name="foo"/><child name="bar"/></parent>

      Attachments

        Activity

          People

            pferraro@redhat.com Paul Ferraro
            pferraro@redhat.com Paul Ferraro
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: