Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
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.