Package org.apache.tuscany.spi.loader

Examples of org.apache.tuscany.spi.loader.UnrecognizedElementException


                            DeploymentContext deploymentContext) throws XMLStreamException, LoaderException {
        QName name = reader.getName();
        monitor.elementLoad(name);
        StAXElementLoader<? extends ModelObject> loader = loaders.get(name);
        if (loader == null) {
            throw new UnrecognizedElementException(name);
        }
        return loader.load(parent, reader, deploymentContext);
    }
View Full Code Here


                    QName name = reader.getName();
                    ModelObject mo = load(parent, reader, ctx);
                    if (type.isInstance(mo)) {
                        return type.cast(mo);
                    } else {
                        UnrecognizedElementException e = new UnrecognizedElementException(name);
                        e.setResourceURI(url.toString());
                        throw e;
                    }
                } finally {
                    try {
                        reader.close();
View Full Code Here

TOP

Related Classes of org.apache.tuscany.spi.loader.UnrecognizedElementException

Copyright © 2018 www.massapicom. 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.