Package com.alibaba.citrus.springext.ResourceResolver

Examples of com.alibaba.citrus.springext.ResourceResolver.Resource


        return schemas;
    }

    private Schema loadMainSchema(String mainName) {
        String schemaName = mainName + "." + XML_SCHEMA_EXTENSION;
        Resource resource = settings.getResourceFromRelativeLocation(schemaName, log);

        if (resource == null) {
            return null; // no schema found
        } else {
            log.debug("Found schema file for contribution {}: {}", mainName, resource);
View Full Code Here


        assertNotNull(resources, schemaNamePattern);

        List<Schema> schemas = createLinkedList();

        for (Iterator<Resource> i = resources.iterator(); i.hasNext(); ) {
            Resource resource = i.next();
            String path = resource.getName();
            Matcher matcher = pattern.matcher(path);

            if (matcher.matches()) {
                String schemaName = matcher.group(1);
                String schemaVersion = matcher.group(2);
View Full Code Here

                }

                SpringSchemasSourceInfoImpl pluginSourceInfo = new SpringSchemasSourceInfoImpl();
                pluginSourceInfo.setSource(source, lineNumber);

                Resource schemaSource = getResource(classpathLocation, uri);

                if (schemaSource != null) {
                    Schema schema = SchemaImpl.createSpringPluggableSchema(
                            schemaName, version, true, desc, schemaSource,
                            new SourceInfoSupport<SpringSchemasSourceInfo>(pluginSourceInfo).setSource(schemaSource), toolingParameters);
View Full Code Here

            log.debug(buf.toString());
        }
    }

    private Resource getResource(String classpathLocation, String uri) {
        Resource resource = resourceResolver.getResource(classpathLocation);

        if (resource == null) {
            log.warn("Could not find schema {} for URI: {}", classpathLocation, uri);
        }
View Full Code Here

        return schemas;
    }

    private Schema loadMainSchema(String mainName) {
        String schemaName = mainName + "." + XML_SCHEMA_EXTENSION;
        Resource resource = settings.getResourceFromRelativeLocation(schemaName, log);

        if (resource == null) {
            return null; // no schema found
        } else {
            log.debug("Found schema file for contribution {}: {}", mainName, resource);
View Full Code Here

        assertNotNull(resources, schemaNamePattern);

        List<Schema> schemas = createLinkedList();

        for (Iterator<Resource> i = resources.iterator(); i.hasNext(); ) {
            Resource resource = i.next();
            String path = resource.getName();
            Matcher matcher = pattern.matcher(path);

            if (matcher.matches()) {
                String schemaName = matcher.group(1);
                String schemaVersion = matcher.group(2);
View Full Code Here

TOP

Related Classes of com.alibaba.citrus.springext.ResourceResolver.Resource

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.