Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-119

Add resolve-expressions param to operation read-resource

XMLWordPrintable

      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.

      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;
         ...
      }
      

      Therefore a param resolve-expressions for the read-resource operation would be good.

            gonthim Joe Wertz (Inactive)
            michael.voegele@cloudops Michael Voegele
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: