Examples of registerRootElement()


Examples of org.jboss.staxmapper.XMLMapper.registerRootElement()

        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);
View Full Code Here

Examples of org.jboss.staxmapper.XMLMapper.registerRootElement()

    /** {@inheritDoc} */
    @Override
    public List<ModelNode> load() throws ConfigurationPersistenceException {
        final XMLMapper mapper = XMLMapper.Factory.create();
        mapper.registerRootElement(rootElement, rootParser);
        final List<ModelNode> updates = new ArrayList<ModelNode>();
        try {
            final FileInputStream fis = new FileInputStream(fileName);
            try {
                BufferedInputStream input = new BufferedInputStream(fis);
View Full Code Here

Examples of org.jboss.staxmapper.XMLMapper.registerRootElement()

      XMLMapper xmlMapper = XMLMapper.Factory.create();
      @SuppressWarnings("rawtypes")
      ServiceLoader<ConfigurationParser> parsers = ServiceLoader.load(ConfigurationParser.class, cl);
      for (ConfigurationParser<?> parser : parsers) {
         for (Namespace ns : parser.getSupportedNamespaces()) {
            xmlMapper.registerRootElement(new QName(ns.getUri(), ns.getRootElement()), parser);
         }
      }

      ConfigurationBuilderHolder holder = new ConfigurationBuilderHolder(cl);
      for (int i = 0; i < xmls.length; ++i) {
View Full Code Here

Examples of org.jboss.staxmapper.XMLMapper.registerRootElement()

    /** {@inheritDoc} */
    @Override
    public List<ModelNode> load() throws ConfigurationPersistenceException {
        final XMLMapper mapper = XMLMapper.Factory.create();
        mapper.registerRootElement(rootElement, rootParser);
        if(additionalRootElement != null){
            mapper.registerRootElement(additionalRootElement, additionalParser);
        }
        final List<ModelNode> updates = new ArrayList<ModelNode>();
        try {
View Full Code Here

Examples of org.jboss.staxmapper.XMLMapper.registerRootElement()

    @Override
    public List<ModelNode> load() throws ConfigurationPersistenceException {
        final XMLMapper mapper = XMLMapper.Factory.create();
        mapper.registerRootElement(rootElement, rootParser);
        if(additionalRootElement != null){
            mapper.registerRootElement(additionalRootElement, additionalParser);
        }
        final List<ModelNode> updates = new ArrayList<ModelNode>();
        try {
            final FileInputStream fis = new FileInputStream(fileName);
            try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.