Package org.apache.hivemind.parse

Examples of org.apache.hivemind.parse.SubModuleDescriptor


        new ContributionDescriptor().toString();
        new ImplementationDescriptor().toString();
        new CreateInstanceDescriptor().toString();
        new InvokeFactoryDescriptor().toString();
        new ModuleDescriptor(_resolver, new DefaultErrorHandler()).toString();
        new SubModuleDescriptor().toString();
        new DependencyDescriptor().toString();
        new ServicePointDescriptor().toString();
        new InterceptorDescriptor().toString();
        new ElementImpl().toString();
        new AttributeImpl("foo", "bar").toString();
View Full Code Here


        if (subModules == null)
            return;

        for (Iterator i = subModules.iterator(); i.hasNext();)
        {
            SubModuleDescriptor smd = (SubModuleDescriptor) i.next();

            Resource descriptorResource = smd.getDescriptor();

            if (descriptorResource.getResourceURL() == null)
            {
                _errorHandler.error(
                        LOG,
                        XmlImplMessages.subModuleDoesNotExist(descriptorResource),
                        smd.getLocation(),
                        null);
                continue;
            }

            processResource(smd.getDescriptor());
        }
    }
View Full Code Here

        if (subModules == null)
            return;

        for (Iterator i = subModules.iterator(); i.hasNext();)
        {
            SubModuleDescriptor smd = (SubModuleDescriptor) i.next();

            Resource descriptorResource = smd.getDescriptor();

            if (descriptorResource.getResourceURL() == null)
            {
                _errorHandler.error(
                        LOG,
                        ImplMessages.subModuleDoesNotExist(descriptorResource),
                        smd.getLocation(),
                        null);
                continue;
            }

            processResource(smd.getDescriptor());
        }
    }
View Full Code Here

        if (subModules != null)
        {
            for (Iterator i = subModules.iterator(); i.hasNext();)
            {
                SubModuleDescriptor smd = (SubModuleDescriptor) i.next();

                Element subModule = getSubModuleElement(smd);

                module.appendChild(subModule);
            }
View Full Code Here

        if (subModules != null)
        {
            for (Iterator i = subModules.iterator(); i.hasNext();)
            {
                SubModuleDescriptor smd = (SubModuleDescriptor) i.next();

                Element subModule = getSubModuleElement(smd);

                module.appendChild(subModule);
            }
View Full Code Here

        if (subModules == null)
            return;

        for (Iterator i = subModules.iterator(); i.hasNext();)
        {
            SubModuleDescriptor smd = (SubModuleDescriptor) i.next();

            Resource descriptorResource = smd.getDescriptor();

            if (descriptorResource.getResourceURL() == null)
            {
                _errorHandler.error(
                        LOG,
                        ImplMessages.subModuleDoesNotExist(descriptorResource),
                        smd.getLocation(),
                        null);
                continue;
            }

            processResource(smd.getDescriptor());
        }
    }
View Full Code Here

        if (subModules == null)
            return;

        for (Iterator i = subModules.iterator(); i.hasNext();)
        {
            SubModuleDescriptor smd = (SubModuleDescriptor) i.next();

            Resource descriptorResource = smd.getDescriptor();

            if (descriptorResource.getResourceURL() == null)
            {
                _errorHandler.error(
                        LOG,
                        ImplMessages.subModuleDoesNotExist(descriptorResource),
                        smd.getLocation(),
                        null);
                continue;
            }

            processResource(smd.getDescriptor());
        }
    }
View Full Code Here

        if (subModules != null)
        {
            for (Iterator i = subModules.iterator(); i.hasNext();)
            {
                SubModuleDescriptor smd = (SubModuleDescriptor) i.next();

                Element subModule = getSubModuleElement(smd);

                module.appendChild(subModule);
            }
View Full Code Here

        new ContributionDescriptor().toString();
        new ImplementationDescriptor().toString();
        new CreateInstanceDescriptor().toString();
        new InvokeFactoryDescriptor().toString();
        new ModuleDescriptor(_resolver, new DefaultErrorHandler()).toString();
        new SubModuleDescriptor().toString();
        new DependencyDescriptor().toString();
        new ServicePointDescriptor().toString();
        new InterceptorDescriptor().toString();
        new ModuleImpl().toString();
        new RegistryInfrastructureImpl(null, Locale.ENGLISH).toString();
View Full Code Here

        }
        LOG.debug("Beginning processing submodules in "+moduleDescriptor);

        for (Iterator i = subModules.iterator(); i.hasNext();)
        {
            SubModuleDescriptor smd = (SubModuleDescriptor) i.next();

            Resource descriptorResource = smd.getDescriptor();

            String path = descriptorResource.getPath();

            int classpathPos = path.indexOf(CLASSPATH);
            if (classpathPos>=0) {
                // java's current directory is prepended to "classpath://" so that needs to be stripped off as well
                // i.e. Users/patmoore/projects/amplafi-foundation/target/test-classes/classpath://amplafi-mock.tapestry4.xml
                path = path.substring(classpathPos + CLASSPATH.length());
                List<Resource> descriptorResources = getDescriptorResources(path, _resolver);
                if ( descriptorResources== null || descriptorResources.isEmpty()) {
                    _errorHandler.error(
                        LOG, "classpathCannotFindsubModule:"+ path,
                        smd.getLocation(),
                        null);
                    continue;
                } else if ( descriptorResources.size() > 1) {
                    _errorHandler.error(LOG, "WARNING:"+path+" multiple locations found "+descriptorResources, smd.getLocation(), null);
                }
                descriptorResource = descriptorResources.get(0);
            }

            if (descriptorResource.getResourceURL() == null)
            {
                _errorHandler.error(
                        LOG,
                        "subModuleDoesNotExist:" + descriptorResource,
                        smd.getLocation(),
                        null);
                continue;
            }
            LOG.debug("processing submodule "+descriptorResource);
            processResource(descriptorResource);
View Full Code Here

TOP

Related Classes of org.apache.hivemind.parse.SubModuleDescriptor

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.