/** {@inheritDoc} */
 @Override
 public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context)
     throws XMLStreamException {
   ModelNode model = new ModelNode();
   model
       .get(UndertowRootDefinition.INSTANCE.getPathElement().getKeyValuePair())
       .set(context.getModelNode()); // this is bit of workaround for SPRD to work properly
   xmlDescription.persist(writer, model, Namespace.CURRENT.getUriString());
 }
Пример #2
0
 /** {@inheritDoc} */
 @Override
 public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list)
     throws XMLStreamException {
   xmlDescription.parse(reader, PathAddress.EMPTY_ADDRESS, list);
 }
Пример #3
0
 static {
   xmlDescription =
       PersistentResourceXMLDescription.builder(
               new JSR77ManagementRootResource(false), JSR77ManagementExtension.NAMESPACE)
           .build();
 }