[jboss-jira] [JBoss JIRA] (WFLY-1327) Add resolveParameterValue methods to AttributeDefinition

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Thu May 9 18:28:53 EDT 2013


Brian Stansberry created WFLY-1327:
--------------------------------------

             Summary: Add resolveParameterValue methods to AttributeDefinition
                 Key: WFLY-1327
                 URL: https://issues.jboss.org/browse/WFLY-1327
             Project: WildFly
          Issue Type: Feature Request
          Components: Domain Management
            Reporter: Brian Stansberry
            Assignee: Brian Stansberry
             Fix For: 8.0.0.Alpha1


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. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list