/** * {@inheritDoc} */ @Override public void initializeParsers(ExtensionParsingContext context) { context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_0.getUriString(), JMXSubsystemParser_1_0::new); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_1.getUriString(), JMXSubsystemParser_1_1::new); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_2.getUriString(), JMXSubsystemParser_1_2::new); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_3.getUriString(), JMXSubsystemParser_1_3::new); }
/** * {@inheritDoc} */ @Override public void initializeParsers(ExtensionParsingContext context) { context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_0.getUriString(), parser10); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_1.getUriString(), parser11); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_2.getUriString(), parserCurrent); }
/** * {@inheritDoc} */ @Override public void initializeParsers(ExtensionParsingContext context) { context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_0.getUriString(), parser10); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_1.getUriString(), parser11); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_2.getUriString(), parser12); context.setSubsystemXmlMapping(SUBSYSTEM_NAME, Namespace.JMX_1_3.getUriString(), parserCurrent); }
/** * {@inheritDoc} */ @Override public void writeContent(XMLExtendedStreamWriter writer, SubsystemMarshallingContext context) throws XMLStreamException { Namespace schemaVer = Namespace.CURRENT; ModelNode node = context.getModelNode(); context.startSubsystemElement(schemaVer.getUriString(), false); if (node.hasDefined(CommonAttributes.EXPOSE_MODEL)) { ModelNode showModel = node.get(CommonAttributes.EXPOSE_MODEL); if (showModel.hasDefined(CommonAttributes.RESOLVED)) { writer.writeEmptyElement(Element.EXPOSE_RESOLVED_MODEL.getLocalName()); ExposeModelResourceResolved.DOMAIN_NAME.marshallAsAttribute(showModel.get(CommonAttributes.RESOLVED), false, writer); ExposeModelResourceResolved.PROPER_PROPERTY_FORMAT.marshallAsAttribute(showModel.get(CommonAttributes.RESOLVED), false, writer); } if (showModel.hasDefined(CommonAttributes.EXPRESSION)) { writer.writeEmptyElement(Element.EXPOSE_EXPRESSION_MODEL.getLocalName()); ExposeModelResourceExpression.DOMAIN_NAME.marshallAsAttribute(showModel.get(CommonAttributes.EXPRESSION), false, writer); } } if (node.hasDefined(CommonAttributes.REMOTING_CONNECTOR)) { writer.writeStartElement(Element.REMOTING_CONNECTOR.getLocalName()); final ModelNode resourceModel = node.get(CommonAttributes.REMOTING_CONNECTOR).get(CommonAttributes.JMX); RemotingConnectorResource.USE_MANAGEMENT_ENDPOINT.marshallAsAttribute(resourceModel, writer); writer.writeEndElement(); } writer.writeEndElement(); } }
final ModelNode node = context.getModelNode(); context.startSubsystemElement(schemaVer.getUriString(), false); if (node.hasDefined(CommonAttributes.EXPOSE_MODEL)) { ModelNode showModel = node.get(CommonAttributes.EXPOSE_MODEL);
final ModelNode node = context.getModelNode(); context.startSubsystemElement(schemaVer.getUriString(), false); if (node.hasDefined(CommonAttributes.EXPOSE_MODEL)) { ModelNode showModel = node.get(CommonAttributes.EXPOSE_MODEL);