Package org.apache.hivemind.impl

Examples of org.apache.hivemind.impl.XmlModuleDescriptorProvider


        Resource r = new ContextResource(context, path);

        if (r.getResourceURL() == null)
            return;

        builder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(_resolver, r));
    }
View Full Code Here


    {
        ErrorHandler errorHandler = constructErrorHandler(config);

        RegistryBuilder builder = new RegistryBuilder(errorHandler);

        builder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(_resolver));

        String name = config.getServletName();
        ServletContext context = config.getServletContext();

        addModuleIfExists(builder, context, "/WEB-INF/" + name + "/hivemodule.xml");
View Full Code Here

        Resource r = new ContextResource(context, path);

        if (r.getResourceURL() == null)
            return;

        builder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(_resolver, r));
    }
View Full Code Here

    {
        ErrorHandler errorHandler = constructErrorHandler(config);

        RegistryBuilder builder = new RegistryBuilder(errorHandler);

        builder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(_resolver));

        String name = config.getServletName();
        ServletContext context = config.getServletContext();

        addModuleIfExists(builder, context, "/WEB-INF/" + name + "/hivemodule.xml");
View Full Code Here

        Resource r = new ContextResource(context, path);

        if (r.getResourceURL() == null)
            return;

        builder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(_resolver, r));
    }
View Full Code Here

    {
        try
        {
            enqueue(moduleDescriptors);

            ModuleDescriptorProvider provider = new XmlModuleDescriptorProvider(
                    new DefaultClassResolver(), _resourceQueue);

            RegistrySerializer generator = new RegistrySerializer();

            generator.addModuleDescriptorProvider(provider);
View Full Code Here

        ClassResolver resolver = new DefaultClassResolver(loader);

        RegistryBuilder b = new RegistryBuilder();

        b.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(resolver));

        Registry r = b.constructRegistry(Locale.getDefault());

        List l = r.getConfiguration("hivemind.test.config.Symbols");
        assertEquals(1, l.size());
View Full Code Here

    {
        ContextResource r = new ContextResource(context, HIVE_MODULE_XML);

        if (r.getResourceURL() != null)
        {
            ModuleDescriptorProvider provider = new XmlModuleDescriptorProvider(resolver, r);

            builder.addModuleDescriptorProvider(provider);
        }
    }
View Full Code Here

     *
     * @since 1.1
     */
    protected ModuleDescriptorProvider getModuleDescriptorProvider(ClassResolver resolver)
    {
        return new XmlModuleDescriptorProvider(resolver);
    }
View Full Code Here

            Resource resource = getResource(files[i]);

            descriptorResources.add(resource);
        }

        ModuleDescriptorProvider provider = new XmlModuleDescriptorProvider(resolver,
                descriptorResources);

        return buildFrameworkRegistry(provider);
    }
View Full Code Here

TOP

Related Classes of org.apache.hivemind.impl.XmlModuleDescriptorProvider

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.