/** {@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()); }
/** {@inheritDoc} */ @Override public void readElement(XMLExtendedStreamReader reader, List<ModelNode> list) throws XMLStreamException { xmlDescription.parse(reader, PathAddress.EMPTY_ADDRESS, list); }
static { xmlDescription = PersistentResourceXMLDescription.builder( new JSR77ManagementRootResource(false), JSR77ManagementExtension.NAMESPACE) .build(); }