Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-1327

Add resolveParameterValue methods to AttributeDefinition

    Details

    • Type: Feature Request
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 8.0.0.Alpha1
    • Component/s: Management
    • Labels:
      None

      Description

      The AttributeDefinition.resolveModelAttribute() methods are written assuming the ModelNode to resolve is inside a ModelType.OBJECT structure stored under a key that is the attribute name.

      Sometimes the node is in an operation under a different key, usually "value" (for a write attribute op). This happens when the operation is writing a runtime-only attribute, so there is no Stage.MODEL storage of the value to the Resource model.

      A resolveParameterValue method would save some boilerplate code for operation handlers that have to deal with this kind of thing.

      See https://github.com/wildfly/wildfly/pull/4378/files for an example case where this would be helpful.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                brian.stansberry Brian Stansberry
                Reporter:
                brian.stansberry Brian Stansberry
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: