[jboss-jira] [JBoss JIRA] (AS7-4682) Make read-resource report child resources of the same type in the same order they appear in the underlying model node

Kabir Khan (JIRA) jira-events at lists.jboss.org
Mon Apr 30 18:32:17 EDT 2012


Kabir Khan created AS7-4682:
-------------------------------

             Summary: Make read-resource report child resources of the same type in the same order they appear in the underlying model node
                 Key: AS7-4682
                 URL: https://issues.jboss.org/browse/AS7-4682
             Project: Application Server 7
          Issue Type: Feature Request
          Components: Domain Management
            Reporter: Kabir Khan
            Assignee: Kabir Khan
             Fix For: 7.1.2.Final-redhat1


If the 'test' resource registration is for a wild card, e.g.
{code}
registration.registerSubModel(PathElement.pathElement("test"), new DescriptionProvider() {

            @Override
            public ModelNode getModelDescription(Locale locale) {
                ModelNode node = new ModelNode();
                node.get(DESCRIPTION).set("a test node");
                node.get(ATTRIBUTES, "prop", TYPE).set(ModelType.STRING);
                node.get(ATTRIBUTES, "prop", DESCRIPTION).set("A test property");
                return node;
            }
        });
{code}
And the model is
{code}
{"test" => {
    "g" => {"prop" => "G"},
    "e" => {"prop" => "E"},
    "l" => {"prop" => "L"},
    "d" => {"prop" => "D"},
    "h" => {"prop" => "H"},
    "k" => {"prop" => "K"},
    "f" => {"prop" => "F"},
    "a" => {"prop" => "A"},
    "b" => {"prop" => "B"},
    "j" => {"prop" => "J"},
    "c" => {"prop" => "C"},
    "i" => {"prop" => "I"}
}}
{code}
A :read-resource(recursive=true) should return the exact same model, e.g.:
{code}
{"test" => {
    "g" => {"prop" => "G"},
    "e" => {"prop" => "E"},
    "l" => {"prop" => "L"},
    "d" => {"prop" => "D"},
    "h" => {"prop" => "H"},
    "k" => {"prop" => "K"},
    "f" => {"prop" => "F"},
    "a" => {"prop" => "A"},
    "b" => {"prop" => "B"},
    "j" => {"prop" => "J"},
    "c" => {"prop" => "C"},
    "i" => {"prop" => "I"}
}}
{code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list