• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java XMLMapper类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.jboss.staxmapper.XMLMapper的典型用法代码示例。如果您正苦于以下问题:Java XMLMapper类的具体用法?Java XMLMapper怎么用?Java XMLMapper使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

XMLMapper类属于org.jboss.staxmapper包,在下文中一共展示了XMLMapper类的39个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: StandaloneXMLParser

点赞 3

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
public StandaloneXMLParser() {

        parserDelegate = new StandaloneXml(new ExtensionHandler() {
            @Override
            public void parseExtensions(XMLExtendedStreamReader reader, ModelNode address, Namespace namespace, List<ModelNode> list) throws XMLStreamException {
                reader.discardRemainder(); // noop
            }

            @Override
            public Set<ProfileParsingCompletionHandler> getProfileParsingCompletionHandlers() {
                return Collections.emptySet();
            }

            @Override
            public void writeExtensions(XMLExtendedStreamWriter writer, ModelNode modelNode) throws XMLStreamException {
                // noop
            }
        }, ParsingOption.IGNORE_SUBSYSTEM_FAILURES);

        xmlMapper = XMLMapper.Factory.create();

        addDelegate(new QName(Namespace.CURRENT.getUriString(), SERVER), parserDelegate);
        addDelegate(new QName("urn:jboss:domain:4.1", SERVER), parserDelegate);
        addDelegate(new QName("urn:jboss:domain:4.0", SERVER), parserDelegate);
        addDelegate(new QName("urn:jboss:domain:2.0", SERVER), parserDelegate);
    }
 

开发者ID:wildfly-swarm,
项目名称:wildfly-swarm,
代码行数:27,
代码来源:StandaloneXMLParser.java

示例2: StandaloneXmlParser

点赞 3

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
public StandaloneXmlParser() {

        parserDelegate = new StandaloneXml(new ExtensionHandler() {
            @Override
            public void parseExtensions(XMLExtendedStreamReader reader, ModelNode address, Namespace namespace, List<ModelNode> list) throws XMLStreamException {
                reader.discardRemainder(); // noop
            }

            @Override
            public Set<ProfileParsingCompletionHandler> getProfileParsingCompletionHandlers() {
                return Collections.EMPTY_SET;
            }

            @Override
            public void writeExtensions(XMLExtendedStreamWriter writer, ModelNode modelNode) throws XMLStreamException {
                // noop
            }
        }, ParsingOption.IGNORE_SUBSYSTEM_FAILURES);

        xmlMapper = XMLMapper.Factory.create();
        xmlMapper.registerRootElement(new QName("urn:jboss:domain:4.0", "server"), parserDelegate);

    }
 

开发者ID:wildfly-swarm-archive,
项目名称:ARCHIVE-wildfly-swarm,
代码行数:24,
代码来源:StandaloneXmlParser.java

示例3: loadModule

点赞 3

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
private XMLStreamException loadModule(final String moduleName, final XMLMapper xmlMapper) throws XMLStreamException {
    // Register element handlers for this extension
    try {
        final Module module = moduleLoader.loadModule(ModuleIdentifier.fromString(moduleName));
        boolean initialized = false;
        for (final Extension extension : module.loadService(Extension.class)) {
            ClassLoader oldTccl = WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(extension.getClass());
            try {
                extension.initializeParsers(extensionRegistry.getExtensionParsingContext(moduleName, xmlMapper));
            } finally {
                WildFlySecurityManager.setCurrentContextClassLoaderPrivileged(oldTccl);
            }
            if (!initialized) {
                initialized = true;
            }
        }
        if (!initialized) {
            throw ControllerLogger.ROOT_LOGGER.notFound("META-INF/services/", Extension.class.getName(), module.getIdentifier());
        }
        return null;
    } catch (final ModuleLoadException e) {
        throw ControllerLogger.ROOT_LOGGER.failedToLoadModule(e);
    }
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:25,
代码来源:DeferredExtensionContext.java

示例4: testChildlessResource

点赞 3

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testChildlessResource() throws Exception {
    MyParser parser = new ChildlessParser();
    String xml =
            "<subsystem xmlns=\"" + MyParser.NAMESPACE + "\">" +
                    "   <cluster attr1=\"alice\"/>" +
                    "</subsystem>";
    StringReader strReader = new StringReader(xml);

    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(MyParser.NAMESPACE, "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);

    ModelNode subsystem = opsToModel(operations);

    StringWriter stringWriter = new StringWriter();
    XMLExtendedStreamWriter xmlStreamWriter = createXMLStreamWriter(XMLOutputFactory.newInstance()
            .createXMLStreamWriter(stringWriter));
    SubsystemMarshallingContext context = new SubsystemMarshallingContext(subsystem, xmlStreamWriter);
    mapper.deparseDocument(parser, context, xmlStreamWriter);
    String out = stringWriter.toString();
    Assert.assertEquals(normalizeXML(xml), normalizeXML(out));
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:27,
代码来源:PersistentResourceXMLParserTestCase.java

示例5: testElementParsers

点赞 3

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testElementParsers() throws Exception {

    MyParser parser = new MyParser();

    String xml = readResource("elements.xml");
    StringReader strReader = new StringReader(xml);

    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(MyParser.NAMESPACE, "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);

    Assert.assertEquals(5, operations.size());
    ModelNode subsystem = opsToModel(operations);

    StringWriter stringWriter = new StringWriter();
    XMLExtendedStreamWriter xmlStreamWriter = createXMLStreamWriter(XMLOutputFactory.newInstance().createXMLStreamWriter(stringWriter));
    SubsystemMarshallingContext context = new SubsystemMarshallingContext(subsystem, xmlStreamWriter);
    mapper.deparseDocument(parser, context, xmlStreamWriter);
    String out = stringWriter.toString();
    Assert.assertEquals(normalizeXML(xml), normalizeXML(out));
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:26,
代码来源:PersistentResourceXMLParserTestCase.java

示例6: testServerWithComplexAttributeParser

点赞 3

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testServerWithComplexAttributeParser() throws Exception {
    ServerParser parser = new ServerParser();

    String xml = readResource("server-complex-attribute.xml");
    StringReader strReader = new StringReader(xml);

    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(MyParser.NAMESPACE, "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);

    Assert.assertEquals(5, operations.size());
    ModelNode subsystem = opsToModel(operations);

    StringWriter stringWriter = new StringWriter();
    XMLExtendedStreamWriter xmlStreamWriter = createXMLStreamWriter(XMLOutputFactory.newInstance().createXMLStreamWriter(stringWriter));
    SubsystemMarshallingContext context = new SubsystemMarshallingContext(subsystem, xmlStreamWriter);
    mapper.deparseDocument(parser, context, xmlStreamWriter);
    String out = stringWriter.toString();
    Assert.assertEquals(normalizeXML(xml), normalizeXML(out));
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:25,
代码来源:PersistentResourceXMLParserTestCase.java

示例7: testORBSubsystem

点赞 3

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testORBSubsystem() throws Exception {
    IIOPSubsystemParser parser = new IIOPSubsystemParser();

    String xml = readResource("orb-subsystem.xml");
    StringReader strReader = new StringReader(xml);

    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName("urn:jboss:domain:orb-test:1.0", "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);

    Assert.assertEquals(1, operations.size());
    ModelNode subsystem = opsToModel(operations);

    StringWriter stringWriter = new StringWriter();
    XMLExtendedStreamWriter xmlStreamWriter = createXMLStreamWriter(XMLOutputFactory.newInstance().createXMLStreamWriter(stringWriter));
    SubsystemMarshallingContext context = new SubsystemMarshallingContext(subsystem, xmlStreamWriter);
    mapper.deparseDocument(parser, context, xmlStreamWriter);
    String out = stringWriter.toString();
    Assert.assertEquals(normalizeXML(xml), normalizeXML(out));
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:25,
代码来源:PersistentResourceXMLParserTestCase.java

示例8: testComplexAttributesStuff

点赞 3

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testComplexAttributesStuff() throws Exception {
    CoreParser parser = new CoreParser();

    String xml = readResource("core-subsystem.xml");
    StringReader strReader = new StringReader(xml);

    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName("urn:jboss:domain:core:1.0", "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);

    Assert.assertEquals(2, operations.size());
    Assert.assertEquals(2, operations.get(1).get("listeners").asList().size());
    ModelNode subsystem = opsToModel(operations);

    StringWriter stringWriter = new StringWriter();
    XMLExtendedStreamWriter xmlStreamWriter = createXMLStreamWriter(XMLOutputFactory.newInstance().createXMLStreamWriter(stringWriter));
    SubsystemMarshallingContext context = new SubsystemMarshallingContext(subsystem, xmlStreamWriter);
    mapper.deparseDocument(parser, context, xmlStreamWriter);
    String out = stringWriter.toString();
    Assert.assertEquals(normalizeXML(xml), normalizeXML(out));
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:26,
代码来源:PersistentResourceXMLParserTestCase.java

示例9: parse

点赞 3

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
private void parse(final VirtualFile file,final XMLMapper mapper, final JBossAllXmlParseContext context) throws DeploymentUnitProcessingException {
    final FileInputStream fis;
    final File realFile;
    try {
        realFile = file.getPhysicalFile();
        fis = new FileInputStream(realFile);
    } catch (IOException e) {
        //should never happen as we check for existence
        throw new DeploymentUnitProcessingException(e);
    }
    try {
        parse(fis, realFile, mapper, context);
    } finally {
        safeClose(fis);
    }
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:17,
代码来源:JBossAllXMLParsingProcessor.java

示例10: testContent

点赞 3

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testContent() throws Exception {
    final String xml = "<?xml version='1.0' encoding='UTF-8'?>" +
            "<server name=\"example\" xmlns=\"urn:jboss:domain:1.0\">" +
            "    <deployments>" +
            "        <deployment name=\"test.war\" runtime-name=\"test-run.war\">" +
            "            <content sha1=\"1234\"/>" +
            "        </deployment>" +
            "    </deployments>" +
            "</server>";
    final XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(xml));
    final StandaloneXml parser = new StandaloneXml(null, null, null, null);
    final List<ModelNode> operationList = new ArrayList<ModelNode>();
    final XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(namespace, "server"), parser);
    mapper.parseDocument(operationList, reader);
    final ModelNode content = operationList.get(1).get("content");
    assertArrayEquals(new byte[] { 0x12, 0x34 }, content.get(0).get("hash").asBytes());
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:20,
代码来源:Jbas9020TestCase.java

示例11: testFSArchive

点赞 3

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testFSArchive() throws Exception {
    final String xml = "<?xml version='1.0' encoding='UTF-8'?>" +
            "<server name=\"example\" xmlns=\"urn:jboss:domain:1.0\">" +
            "    <deployments>" +
            "        <deployment name=\"test.war\" runtime-name=\"test-run.war\">" +
            "            <fs-archive path=\"${jboss.home}/content/welcome.jar\"/>" +
            "        </deployment>" +
            "    </deployments>" +
            "</server>";
    final XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(xml));
    final StandaloneXml parser = new StandaloneXml(null, null, null, null);
    final List<ModelNode> operationList = new ArrayList<ModelNode>();
    final XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(namespace, "server"), parser);
    mapper.parseDocument(operationList, reader);
    System.out.println(operationList.get(1));
    final ModelNode content = operationList.get(1).get("content");
    assertEquals(true, content.get(0).get("archive").asBoolean());
    assertEquals("${jboss.home}/content/welcome.jar", content.get(0).get("path").asString());
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:22,
代码来源:Jbas9020TestCase.java

示例12: testFSExploded

点赞 3

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testFSExploded() throws Exception {
    final String xml = "<?xml version='1.0' encoding='UTF-8'?>" +
            "<server name=\"example\" xmlns=\"urn:jboss:domain:1.0\">" +
            "    <deployments>" +
            "        <deployment name=\"test.war\" runtime-name=\"test-run.war\">" +
            "            <fs-exploded path=\"deployments/test.jar\" relative-to=\"jboss.server.base.dir\"/>" +
            "        </deployment>" +
            "    </deployments>" +
            "</server>";
    final XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StringReader(xml));
    final StandaloneXml parser = new StandaloneXml(null, null, null, null);
    final List<ModelNode> operationList = new ArrayList<ModelNode>();
    final XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(namespace, "server"), parser);
    mapper.parseDocument(operationList, reader);
    final ModelNode content = operationList.get(1).get("content");
    assertEquals(false, content.get(0).get("archive").asBoolean());
    assertEquals("deployments/test.jar", content.get(0).get("path").asString());
    assertEquals("jboss.server.base.dir", content.get(0).get("relative-to").asString());
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:22,
代码来源:Jbas9020TestCase.java

示例13: build

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
/**
 * Builds the utils needed to parse the document
 *
 * @return the test parser utils
 */
public TestParserUtils build() {
    XMLMapper xmlMapper = XMLMapper.Factory.create();
    ExtensionRegistry extensionParsingRegistry = new ExtensionRegistry(processType, new RunningModeControl(runningMode), null, null, null, hostControllerInfoAccessor);
    TestParser testParser = new TestParser(subsystemName, extensionParsingRegistry);
    xmlMapper.registerRootElement(new QName(namespace, "test"), testParser);
    extension.initializeParsers(extensionParsingRegistry.getExtensionParsingContext("Test", xmlMapper));

    String wrappedXml = "<" + rootWrapperName + " xmlns=\"" + namespace + "\">" +
            subsystemXml +
            "</test>";

    return new TestParserUtils(xmlMapper, wrappedXml);
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:19,
代码来源:TestParserUtils.java

示例14: xmlToModelOperations

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
public static List<ModelNode> xmlToModelOperations(String xml, String nameSpaceUriString, XMLElementReader<List<ModelNode>> parser) throws Exception {
    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(nameSpaceUriString, "subsystem"), parser);

    StringReader strReader = new StringReader(xml);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> newList = new ArrayList<ModelNode>();
    mapper.parseDocument(newList, reader);

    return newList;
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:13,
代码来源:AbstractMgmtTestBase.java

示例15: ExtensionParsingContextImpl

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
private ExtensionParsingContextImpl(String extensionName, XMLMapper xmlMapper) {
    extension = getExtensionInfo(extensionName);
    if (xmlMapper != null) {
        synchronized (extension) {
            extension.xmlMapper = xmlMapper;
        }
    }
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:9,
代码来源:ExtensionRegistry.java

示例16: marshallAsXml

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
/** {@inheritDoc} */
@Override
public void marshallAsXml(final ModelNode model, final OutputStream output) throws ConfigurationPersistenceException {
    final XMLMapper mapper = XMLMapper.Factory.create();
    final Map<String, XMLElementWriter<SubsystemMarshallingContext>> localSubsystemWriters = new HashMap<>(subsystemWriters);
    try {
        XMLStreamWriter streamWriter = null;
        try {
            streamWriter = XMLOutputFactory.newInstance().createXMLStreamWriter(output);
            final ModelMarshallingContext extensibleModel = new ModelMarshallingContext() {

                @Override
                public ModelNode getModelNode() {
                    return model;
                }

                @Override
                public XMLElementWriter<SubsystemMarshallingContext> getSubsystemWriter(String extensionName) {
                    //lazy create writer, but only once per config serialization
                    XMLElementWriter<SubsystemMarshallingContext> result = localSubsystemWriters.get(extensionName);
                    if (result == null) {
                        Supplier<XMLElementWriter<SubsystemMarshallingContext>> supplier = subsystemWriterSuppliers.get(extensionName);
                        if (supplier != null) {
                            result = supplier.get();
                            localSubsystemWriters.put(extensionName, result);
                        }
                    }
                    return result;
                }
            };
            mapper.deparseDocument(rootDeparser, extensibleModel, streamWriter);
            streamWriter.close();
        } finally {
            safeClose(streamWriter);
        }
    } catch (Exception e) {
        throw ControllerLogger.ROOT_LOGGER.failedToWriteConfiguration(e);
    }
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:40,
代码来源:AbstractConfigurationPersister.java

示例17: parseExtensions

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
public void parseExtensions(final XMLExtendedStreamReader reader, final ModelNode address, final Namespace expectedNs, final List<ModelNode> list)
        throws XMLStreamException {
    DeferredExtensionContext ctx = this.deferredExtensionContext;
    if(ctx == null) {
        ctx = new DeferredExtensionContext(moduleLoader, extensionRegistry, bootExecutor);
    }
    long start = System.currentTimeMillis();

    requireNoAttributes(reader);

    final Set<String> found = new HashSet<String>();

    final XMLMapper xmlMapper = reader.getXMLMapper();

    while (reader.hasNext() && reader.nextTag() != END_ELEMENT) {
        requireNamespace(reader, expectedNs);
        final Element element = Element.forName(reader.getLocalName());
        if (element != Element.EXTENSION) {
            throw unexpectedElement(reader);
        }

        // One attribute && require no content
        final String moduleName = readStringAttributeElement(reader, Attribute.MODULE.getLocalName());

        if (!found.add(moduleName)) {
            // duplicate module name
            throw ControllerLogger.ROOT_LOGGER.duplicateExtensionElement(Element.EXTENSION.getLocalName(), Attribute.MODULE.getLocalName(), moduleName, reader.getLocation());
        }
        ctx.addExtension(moduleName, xmlMapper);
        addExtensionAddOperation(address, list, moduleName);
    }

    if(deferredExtensionContext == null) {
        ctx.load();
    }
    long elapsed = System.currentTimeMillis() - start;
    if (ROOT_LOGGER.isDebugEnabled()) {
        ROOT_LOGGER.debugf("Parsed extensions in [%d] ms", elapsed);
    }
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:41,
代码来源:ExtensionXml.java

示例18: testWrappersAndGroups

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testWrappersAndGroups() throws Exception {
    MyParser parser = new MyParser();
    String xml = readResource("groups-wrappers-subsystem.xml");
    StringReader strReader = new StringReader(xml);

    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(MyParser.NAMESPACE, "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);

    ModelNode subsystem = opsToModel(operations);

    assertEquals("bar", subsystem.get("resource", "foo", "cluster-attr1").asString());
    assertEquals("baz", subsystem.get("resource", "foo", "cluster-attr2").asString());
    assertEquals("alice", subsystem.get("resource", "foo", "security-my-attr1").asString());
    assertEquals("bob", subsystem.get("resource", "foo", "security-my-attr2").asString());
    assertEquals("bar2", subsystem.get("resource", "foo2", "cluster-attr1").asString());
    assertEquals("baz2", subsystem.get("resource", "foo2", "cluster-attr2").asString());

    StringWriter stringWriter = new StringWriter();
    XMLExtendedStreamWriter xmlStreamWriter = createXMLStreamWriter(XMLOutputFactory.newInstance()
            .createXMLStreamWriter(stringWriter));
    SubsystemMarshallingContext context = new SubsystemMarshallingContext(subsystem, xmlStreamWriter);
    mapper.deparseDocument(parser, context, xmlStreamWriter);
    String out = stringWriter.toString();
    Assert.assertEquals(normalizeXML(xml), normalizeXML(out));

}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:32,
代码来源:PersistentResourceXMLParserTestCase.java

示例19: testGroups

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testGroups() throws Exception {
    MyParser parser = new AttributeGroupParser();
    String xml = readResource("groups-subsystem.xml");
    StringReader strReader = new StringReader(xml);

    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(MyParser.NAMESPACE, "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);

    ModelNode subsystem = opsToModel(operations);

    assertEquals("bar", subsystem.get("resource", "foo", "cluster-attr1").asString());
    assertEquals("baz", subsystem.get("resource", "foo", "cluster-attr2").asString());
    assertEquals("alice", subsystem.get("resource", "foo", "security-my-attr1").asString());
    assertEquals("bob", subsystem.get("resource", "foo", "security-my-attr2").asString());
    assertEquals("val", subsystem.get("resource", "foo", "props", "prop").asString());
    assertEquals("val", subsystem.get("resource", "foo", "wrapped-properties", "prop").asString());
    assertEquals("bar2", subsystem.get("resource", "foo2", "cluster-attr1").asString());
    assertEquals("baz2", subsystem.get("resource", "foo2", "cluster-attr2").asString());

    StringWriter stringWriter = new StringWriter();
    XMLExtendedStreamWriter xmlStreamWriter = createXMLStreamWriter(XMLOutputFactory.newInstance()
            .createXMLStreamWriter(stringWriter));
    SubsystemMarshallingContext context = new SubsystemMarshallingContext(subsystem, xmlStreamWriter);
    mapper.deparseDocument(parser, context, xmlStreamWriter);
    String out = stringWriter.toString();
    Assert.assertEquals(normalizeXML(xml), normalizeXML(out));

}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:34,
代码来源:PersistentResourceXMLParserTestCase.java

示例20: testInvalidMultipleGroups

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test(expected = XMLStreamValidationException.class)
public void testInvalidMultipleGroups() throws Exception {
    MyParser parser = new AttributeGroupParser();
    String xml = readResource("invalid-multiple-groups-subsystem.xml");
    StringReader strReader = new StringReader(xml);

    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(MyParser.NAMESPACE, "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:14,
代码来源:PersistentResourceXMLParserTestCase.java

示例21: testInvalidMultipleObjectTypes

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test(expected = XMLStreamValidationException.class)
public void testInvalidMultipleObjectTypes() throws Exception {
    MyParser parser = new AttributeGroupParser();
    String xml = readResource("invalid-multiple-object-type-subsystem.xml");
    StringReader strReader = new StringReader(xml);

    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(MyParser.NAMESPACE, "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:14,
代码来源:PersistentResourceXMLParserTestCase.java

示例22: testInvalidGroups

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test(expected = XMLStreamException.class)
public void testInvalidGroups() throws Exception {
    MyParser parser = new AttributeGroupParser();
    String xml =
            "<subsystem xmlns=\"" + MyParser.NAMESPACE + "\">" +
                    "   <invalid/>" +
                    "</subsystem>";
    StringReader strReader = new StringReader(xml);
    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(MyParser.NAMESPACE, "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:16,
代码来源:PersistentResourceXMLParserTestCase.java

示例23: testSimpleParser

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testSimpleParser() throws Exception {

    MyParser parser = new MyParser();

    String xml = readResource("simple-subsystem.xml");
    StringReader strReader = new StringReader(xml);

    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(MyParser.NAMESPACE, "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);

    Assert.assertEquals(4, operations.size());
    ModelNode subsystem = opsToModel(operations);
    ModelNode resource = subsystem.get("resource","foo");

    ModelNode complexMap = MyParser.COMPLEX_MAP.resolveModelAttribute(ExpressionResolver.TEST_RESOLVER, resource);
    Assert.assertEquals("Model type should be map", ModelType.OBJECT, complexMap.getType());
    Assert.assertEquals("Map should have 3 elements", 3, complexMap.asList().size());
    Assert.assertEquals("some.class1", complexMap.get("key1", "name").asString());
    Assert.assertEquals("some.class2", complexMap.get("key2", "name").asString());
    Assert.assertEquals("some.module3", complexMap.get("key3", "module").asString());


    StringWriter stringWriter = new StringWriter();
    XMLExtendedStreamWriter xmlStreamWriter = createXMLStreamWriter(XMLOutputFactory.newInstance().createXMLStreamWriter(stringWriter));
    SubsystemMarshallingContext context = new SubsystemMarshallingContext(subsystem, xmlStreamWriter);
    mapper.deparseDocument(parser, context, xmlStreamWriter);
    String out = stringWriter.toString();
    Assert.assertEquals(normalizeXML(xml), normalizeXML(out));
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:35,
代码来源:PersistentResourceXMLParserTestCase.java

示例24: testMail

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testMail() throws Exception {

    MyParser parser = new MailParser();

    String xml = readResource("mail-parser.xml");
    StringReader strReader = new StringReader(xml);

    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(MyParser.NAMESPACE, "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);

    Assert.assertEquals(4, operations.size());
    ModelNode subsystem = opsToModel(operations);


    ModelNode propsModel = subsystem.get("mail-session", "custom");
    assertTrue("Model should be defined", propsModel.has(MyParser.WRAPPED_PROPERTIES.getName()));
    Map<String,String> props = MyParser.WRAPPED_PROPERTIES.unwrap(ExpressionResolver.TEST_RESOLVER, propsModel);
    Assert.assertEquals(0, props.size());

    StringWriter stringWriter = new StringWriter();
    XMLExtendedStreamWriter xmlStreamWriter = createXMLStreamWriter(XMLOutputFactory.newInstance().createXMLStreamWriter(stringWriter));
    SubsystemMarshallingContext context = new SubsystemMarshallingContext(subsystem, xmlStreamWriter);
    mapper.deparseDocument(parser, context, xmlStreamWriter);
    String out = stringWriter.toString();
    Assert.assertEquals(normalizeXML(xml), normalizeXML(out));
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:32,
代码来源:PersistentResourceXMLParserTestCase.java

示例25: testServerParser

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Test
public void testServerParser() throws Exception {
    ServerParser parser = new ServerParser();

    String xml = readResource("server-subsystem.xml");
    StringReader strReader = new StringReader(xml);

    XMLMapper mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(new QName(MyParser.NAMESPACE, "subsystem"), parser);

    XMLStreamReader reader = XMLInputFactory.newInstance().createXMLStreamReader(new StreamSource(strReader));
    List<ModelNode> operations = new ArrayList<>();
    mapper.parseDocument(operations, reader);

    Assert.assertEquals(4, operations.size());
    ModelNode subsystem = opsToModel(operations);

    ModelNode server = subsystem.get("server", "default");
    ModelNode interceptors = MyParser.INTERCEPTORS.resolveModelAttribute(ExpressionResolver.TEST_RESOLVER, server);
    Assert.assertEquals("Model type should be list", ModelType.LIST, interceptors.getType());
    Assert.assertEquals("List should have 0 elements", 0, interceptors.asList().size());

    ModelNode complexList = MyParser.COMPLEX_LIST.resolveModelAttribute(ExpressionResolver.TEST_RESOLVER, server); //this one should be undefined
    Assert.assertTrue("Should be empty", !complexList.isDefined());

    ModelNode complexListWithDefault = MyParser.COMPLEX_LIST_WITH_DEFAULT.resolveModelAttribute(ExpressionResolver.TEST_RESOLVER, server); //this one should be undefined
    Assert.assertEquals("Model type should be list", ModelType.LIST, complexListWithDefault.getType());
    Assert.assertEquals("List should have 1 elements", 1, complexListWithDefault.asList().size());

    /*List<ModelNode> unwrapped = MyParser.COMPLEX_LIST_WITH_DEFAULT.unwrap(ExpressionResolver.TEST_RESOLVER, server); //this one should be undefined
    Assert.assertEquals("it should contain one element", 1, unwrapped.size());*/


    StringWriter stringWriter = new StringWriter();
    XMLExtendedStreamWriter xmlStreamWriter = createXMLStreamWriter(XMLOutputFactory.newInstance().createXMLStreamWriter(stringWriter));
    SubsystemMarshallingContext context = new SubsystemMarshallingContext(subsystem, xmlStreamWriter);
    mapper.deparseDocument(parser, context, xmlStreamWriter);
    String out = stringWriter.toString();
    Assert.assertEquals(normalizeXML(xml), normalizeXML(out));
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:41,
代码来源:PersistentResourceXMLParserTestCase.java

示例26: DeploymentStructureDescriptorParser

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
public DeploymentStructureDescriptorParser() {
    mapper = XMLMapper.Factory.create();
    mapper.registerRootElement(ROOT_1_0, JBossDeploymentStructureParser10.INSTANCE);
    mapper.registerRootElement(ROOT_1_1, JBossDeploymentStructureParser11.INSTANCE);
    mapper.registerRootElement(ROOT_1_2, JBossDeploymentStructureParser12.INSTANCE);
    mapper.registerRootElement(ROOT_1_3, JBossDeploymentStructureParser13.INSTANCE);
    mapper.registerRootElement(ROOT_NO_NAMESPACE, JBossDeploymentStructureParser13.INSTANCE);
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:9,
代码来源:DeploymentStructureDescriptorParser.java

示例27: deploy

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Override
public void deploy(final DeploymentPhaseContext phaseContext) throws DeploymentUnitProcessingException {
    final DeploymentUnit deploymentUnit = phaseContext.getDeploymentUnit();
    final ResourceRoot root = deploymentUnit.getAttachment(Attachments.DEPLOYMENT_ROOT);

    VirtualFile descriptor = null;
    for (final String loc : DEPLOYMENT_STRUCTURE_DESCRIPTOR_LOCATIONS) {
        final VirtualFile file = root.getRoot().getChild(loc);
        if (file.exists()) {
            descriptor = file;
            break;
        }
    }
    if(descriptor == null) {
        return;
    }
    final XMLMapper mapper = XMLMapper.Factory.create();
    final Map<QName, AttachmentKey<?>> namespaceAttachments = new HashMap<QName, AttachmentKey<?>>();
    for(final JBossAllXMLParserDescription<?> parser : deploymentUnit.getAttachmentList(JBossAllXMLParserDescription.ATTACHMENT_KEY)) {
        namespaceAttachments.put(parser.getRootElement(), parser.getAttachmentKey());
        mapper.registerRootElement(parser.getRootElement(), new JBossAllXMLElementReader(parser));
    }
    mapper.registerRootElement(new QName(Namespace.JBOSS_1_0.getUriString(), JBOSS), Parser.INSTANCE);
    mapper.registerRootElement(new QName(Namespace.NONE.getUriString(), JBOSS), Parser.INSTANCE);

    final JBossAllXmlParseContext context = new JBossAllXmlParseContext(deploymentUnit);
    parse(descriptor, mapper, context);

    //we use this map to detect the presence of two different but functionally equivalent namespaces
    final Map<AttachmentKey<?>, QName> usedNamespaces = new HashMap<AttachmentKey<?>, QName>();
    for(Map.Entry<QName, Object> entry : context.getParseResults().entrySet()) {
        final AttachmentKey attachmentKey = namespaceAttachments.get(entry.getKey());
        if(usedNamespaces.containsKey(attachmentKey)) {
            throw ServerLogger.ROOT_LOGGER.equivalentNamespacesInJBossXml(entry.getKey(), usedNamespaces.get(attachmentKey));
        }
        usedNamespaces.put(attachmentKey, entry.getKey());
        deploymentUnit.putAttachment(attachmentKey, entry.getValue());
    }
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:40,
代码来源:JBossAllXMLParsingProcessor.java

示例28: create

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
public static KernelServices create(List<ModelNode> bootOperations, ModelTestOperationValidatorFilter validateOpsFilter, ModelVersion legacyModelVersion,
        List<LegacyModelInitializerEntry> modelInitializerEntries) throws Exception {

    TestModelType type = TestModelType.DOMAIN;
    XMLMapper xmlMapper = XMLMapper.Factory.create();
    TestParser testParser = TestParser.create(null, xmlMapper, type);
    ModelInitializer modelInitializer = null;
    if (modelInitializerEntries != null && modelInitializerEntries.size() > 0) {
        modelInitializer = new LegacyModelInitializer(modelInitializerEntries);
    }

    RunningModeControl runningModeControl = new HostRunningModeControl(RunningMode.ADMIN_ONLY, RestartMode.HC_ONLY);
    ExtensionRegistry extensionRegistry = new ExtensionRegistry(ProcessType.HOST_CONTROLLER, runningModeControl);
    return AbstractKernelServicesImpl.create(ProcessType.HOST_CONTROLLER, runningModeControl, validateOpsFilter, bootOperations, testParser, legacyModelVersion, type, modelInitializer, extensionRegistry, null);
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:16,
代码来源:ChildFirstClassLoaderKernelServicesFactory.java

示例29: create

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
public static TestParser create(ExtensionRegistry registry, XMLMapper xmlMapper, TestModelType type) {
    TestParser testParser;
    String root;
    if (type == TestModelType.STANDALONE) {
        StandaloneXml standaloneXml = new StandaloneXml(null, Executors.newCachedThreadPool(), registry);
        testParser = new TestParser(type, standaloneXml, standaloneXml);
        root = "server";
    } else if (type == TestModelType.DOMAIN) {
        DomainXml domainXml = new DomainXml(null, Executors.newCachedThreadPool(), registry);
        testParser = new TestParser(type, domainXml, domainXml);
        root = "domain";
    } else if (type == TestModelType.HOST) {
        HostXml hostXml = new HostXml("master", RunningMode.NORMAL, false, null, Executors.newCachedThreadPool(), registry);
        testParser = new TestParser(type, hostXml, hostXml);
        root = "host";
    } else {
        throw new IllegalArgumentException("Unknown type " + type);
    }


    try {
        for (Namespace ns : Namespace.ALL_NAMESPACES) {
            xmlMapper.registerRootElement(new QName(ns.getUriString(), root), testParser);
        }
    } catch (NoSuchFieldError e) {
        //7.1.2 does not have the ALL_NAMESPACES field
        xmlMapper.registerRootElement(new QName(Namespace.DOMAIN_1_0.getUriString(), root), testParser);
        xmlMapper.registerRootElement(new QName(Namespace.DOMAIN_1_1.getUriString(), root), testParser);
        xmlMapper.registerRootElement(new QName(Namespace.DOMAIN_1_2.getUriString(), root), testParser);
    }
    return testParser;
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:33,
代码来源:TestParser.java

示例30: loadExternalFile

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
/**
 * In the 2.0 xsd the vault is in an external file, which has no namespace, using the output of the vault tool.
 *
 * @param f the file containing the external vault configuration as generated by the vault tool
 * @return the vault config
 */
static VaultConfig loadExternalFile(File f) throws XMLStreamException {
    if(f == null) {
        throw new IllegalArgumentException("File is null");
    }
    if(!f.exists()) {
        throw new XMLStreamException("Failed to locate vault file " + f.getAbsolutePath());
    }

    final VaultConfig config = new VaultConfig();
    BufferedInputStream input = null;
    try {
        final XMLMapper mapper = XMLMapper.Factory.create();
        final XMLElementReader<VaultConfig> reader = new ExternalVaultConfigReader();
        mapper.registerRootElement(new QName(VAULT), reader);
        FileInputStream is = new FileInputStream(f);
        input = new BufferedInputStream(is);
        XMLStreamReader streamReader = XMLInputFactory.newInstance().createXMLStreamReader(input);
        mapper.parseDocument(config, streamReader);
        streamReader.close();
    } catch(FileNotFoundException e) {
        throw new XMLStreamException("Vault file not found", e);
    } catch(XMLStreamException t) {
        throw t;
    } finally {
        StreamUtils.safeClose(input);
    }
    return config;
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:35,
代码来源:VaultConfig.java

示例31: parse

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
private static CliConfigImpl parse(final CommandContext ctx, File f) throws CliInitializationException {
    if(f == null) {
        throw new CliInitializationException("The file argument is null.");
    }
    if(!f.exists()) {
        //throw new CliInitializationException(f.getAbsolutePath() + " doesn't exist.");
        return new CliConfigImpl();
    }

    CliConfigImpl config = new CliConfigImpl();

    BufferedInputStream input = null;
    try {
        final XMLMapper mapper = XMLMapper.Factory.create();
        final XMLElementReader<CliConfigImpl> reader = new CliConfigReader();
        for (Namespace current : Namespace.cliValues()) {
            mapper.registerRootElement(new QName(current.getUriString(), JBOSS_CLI), reader);
        }
        FileInputStream is = new FileInputStream(f);
        input = new BufferedInputStream(is);
        XMLStreamReader streamReader = XMLInputFactory.newInstance().createXMLStreamReader(input);
        mapper.parseDocument(config, streamReader);
        streamReader.close();
    } catch(Throwable t) {
        throw new CliInitializationException("Failed to parse " + f.getAbsolutePath(), t);
    } finally {
        StreamUtils.safeClose(input);
    }
    return config;
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:31,
代码来源:CliConfigImpl.java

示例32: initializeParser

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
void initializeParser() throws Exception {
    //Initialize the parser
    xmlMapper = XMLMapper.Factory.create();
    extensionParsingRegistry = new ExtensionRegistry(getProcessType(), new RunningModeControl(RunningMode.NORMAL), null, null, null, RuntimeHostControllerInfoAccessor.SERVER);
    testParser = new TestParser(mainSubsystemName, extensionParsingRegistry);
    xmlMapper.registerRootElement(new QName(TEST_NAMESPACE, "test"), testParser);
    mainExtension.initializeParsers(extensionParsingRegistry.getExtensionParsingContext("Test", xmlMapper));
    addedExtraParsers = false;
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:10,
代码来源:SubsystemTestDelegate.java

示例33: WrappedXMLStreamReader

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
public WrappedXMLStreamReader(XMLStreamReader delegate, Set<QName> recognizedNames, XMLMapper mapper) {
    this.delegate = delegate;
    this.recognizedNames = recognizedNames;
    this.mapper = mapper;
}
 

开发者ID:wildfly-swarm,
项目名称:wildfly-swarm,
代码行数:6,
代码来源:WrappedXMLStreamReader.java

示例34: writeContent

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
public void writeContent(XMLStreamWriter streamWriter, MigrationData value) throws XMLStreamException {
    final XMLMapper mapper = XMLMapper.Factory.create();
    mapper.deparseDocument(this, value, streamWriter);
}
 

开发者ID:emmartins,
项目名称:wildfly-server-migration,
代码行数:5,
代码来源:XmlReportWriter.java

示例35: TestParserUtils

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
private TestParserUtils(XMLMapper xmlMapper, String wrappedXml) {
    this.xmlMapper = xmlMapper;
    this.wrappedXml = wrappedXml;
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:5,
代码来源:TestParserUtils.java

示例36: addParsers

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Override
protected void addParsers(ExtensionRegistry extensionRegistry, XMLMapper xmlMapper) {
    extension.initializeParsers(extensionRegistry.getExtensionParsingContext("additional", xmlMapper));
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:5,
代码来源:ModelControllerMBeanTestCase.java

示例37: addExtension

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
public void addExtension(String moduleName, XMLMapper xmlMapper) {
    extensions.add(new ExtensionData(moduleName, xmlMapper));
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:4,
代码来源:DeferredExtensionContext.java

示例38: ExtensionData

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
private ExtensionData(String moduleName, XMLMapper xmlMapper) {
    this.moduleName = moduleName;
    this.xmlMapper = xmlMapper;
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:5,
代码来源:DeferredExtensionContext.java

示例39: addParsers

点赞 2

import org.jboss.staxmapper.XMLMapper; //导入依赖的package包/类
@Override
public void addParsers(ExtensionRegistry extensionRegistry, XMLMapper xmlMapper) {
    dependency.initializeParsers(extensionRegistry.getExtensionParsingContext(DependencySubsystemExtension.EXTENSION_NAME, xmlMapper));
}
 

开发者ID:wildfly,
项目名称:wildfly-core,
代码行数:5,
代码来源:ExtraSubsystemTestCase.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)