Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-470

Rename org.apache.pivot.wtkx.WTKXSerializer to org.apache.pivot.beans.BXMLSerializer

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0
    • core-beans
    • None

    Description

      WTKXSerializer does not currently have any dependencies on org.apache.pivot.wtk and can technically be used to deserialize any arbitrary bean hierarchy. Moving it to pivot-core will allow developers to take advantage of it on the server where it can be used to facilitate design patterns such as dependency injection and aspect-oriented programming.

      There is a question of what prefix to use for the internal processing namespace (currently "wtkx"). Should this continue to be "wtkx" for WTKX files, or should it be something more generic ("bxml", "bx", "jbx", etc.)? This prefix could also be used as a generic file extension for bean markup files when a more appropriate extension is not available.

      There is also the question of what to call the @WTKX annotation. This should probably also parallel the namespace prefix.

      It may be valid for WTKX files to retain the .wtkx extension, since it clearly articulates what type of bean XML the file contains. This notion is further reinforced by the fact that the default namespace for WTKX files refers to the WTK package, org.apache.pivot.wtk. However, using a dedicated extension for WTK markup may simply promote confusion.

      Attachments

        1. sample.wtkx
          0.3 kB
          Gregory K. Brown

        Activity

          People

            gbrown Gregory K. Brown
            gbrown Gregory K. Brown
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: