Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-6603

Allow model to express that an attribute is immutable

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • qpid-java-6.0
    • Broker-J
    • None

    Description

      We have a number of instances in the Java Broker's model where attribute values are fixed after a model object is constructed. Common examples are id, durable, type.

      This is currently enforced with repetitive code in the object's #validateChange method. It will be a useful extension to the model if immutability could be expressed via the managed attribute annotation thus allow the code enforcing immutability made generic.

      In addition, the metadata service should expose the immutable to the UI, allowing the UI to automatically render readonly widgets.

      Attachments

        Activity

          People

            kwall Keith Wall
            kwall Keith Wall
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: