[jboss-jira] [JBoss JIRA] (WFLY-1069) Add resolve-expressions param to operation read-resource

Joe Wertz (JIRA) issues at jboss.org
Fri Aug 1 09:46:31 EDT 2014


     [ https://issues.jboss.org/browse/WFLY-1069?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joe Wertz reassigned WFLY-1069:
-------------------------------

    Assignee: Joe Wertz


> Add resolve-expressions param to operation read-resource
> --------------------------------------------------------
>
>                 Key: WFLY-1069
>                 URL: https://issues.jboss.org/browse/WFLY-1069
>             Project: WildFly
>          Issue Type: Feature Request
>      Security Level: Public(Everyone can see) 
>          Components: Domain Management
>            Reporter: Michael Voegele
>            Assignee: Joe Wertz
>              Labels: expression, read-resource
>
> When reading a resource remotely, it would be nice to have the possibility to have expressions resolved.
> Following does of course not work, as the code runs in a separate jvm.
> {code:java}
> private void readRecursive(ModelNode modelNode, String modelNodeName, Map<String, Object> map) {
>    switch (modelNode.getType()) {
>    ...
>    case EXPRESSION:
>    // this would be great but won't work as it runs in a different jvm
>    // ModelNode expression = modelNode.resolve();
>    // readRecursive(expression, modelNodeName, map);
>    map.put(modelNodeName, modelNode.asString());
>    break;
>    ...
> }
> {code}
> Therefore a param resolve-expressions for the read-resource operation would be good.



--
This message was sent by Atlassian JIRA
(v6.2.6#6264)


More information about the jboss-jira mailing list