Package org.apache.hivemind

Examples of org.apache.hivemind.ModuleDescriptorProvider


        _document.appendChild(registry);

        for (Iterator i = _providers.iterator(); i.hasNext();)
        {
            ModuleDescriptorProvider provider = (ModuleDescriptorProvider) i.next();

            processModuleDescriptorProvider(registry, provider);
        }

        return _document;
View Full Code Here


    }

    public static Document createDefaultRegistryDocument()
    {
        ClassResolver resolver = new DefaultClassResolver();
        ModuleDescriptorProvider provider = new XmlModuleDescriptorProvider(resolver);

        RegistrySerializer serializer = new RegistrySerializer();

        serializer.addModuleDescriptorProvider(provider);
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

    {
        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

     */
    public Registry constructRegistry(Locale locale)
    {
        for (Iterator i = _moduleDescriptorProviders.iterator(); i.hasNext();)
        {
            ModuleDescriptorProvider provider = (ModuleDescriptorProvider) i.next();

            processModuleDescriptorProvider(provider);
        }

        // Process any deferred operations. Post processing is added by
View Full Code Here

     */
    public static Registry constructDefaultRegistry()
    {
        ClassResolver resolver = new DefaultClassResolver();
        RegistryBuilder builder = new RegistryBuilder();
        ModuleDescriptorProvider provider = new XmlModuleDescriptorProvider(resolver);

        builder.addModuleDescriptorProvider(provider);
       
        return builder.constructRegistry(Locale.getDefault());
    }
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

            Resource resource = getResource(file);

            descriptorResources.add(resource);
        }

        ModuleDescriptorProvider provider = new CustomModuleDescriptorProvider(
                resolver, descriptorResources);


        return buildFrameworkRegistry(provider, skipPattern, skipFilesystem);
    }
View Full Code Here

TOP

Related Classes of org.apache.hivemind.ModuleDescriptorProvider

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.