Package org.apache.hivemind

Examples of org.apache.hivemind.ModuleDescriptorProvider


        ClassResolver resolver = new DefaultClassResolver();

        // Register the examples.xml file, which (given its non-standard name)
        // is not visible.
        ModuleDescriptorProvider provider = new XmlModuleDescriptorProvider(resolver,
                new FileResource(path));
        return buildRegistry(provider);
    }
View Full Code Here


        {
            Resource resource = getResource(files[i]);
            descriptorResources.add(resource);
        }

        ModuleDescriptorProvider provider = new XmlModuleDescriptorProvider(resolver,
                descriptorResources);

        return buildRegistry(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

    {
        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

    {
        try
        {
            enqueue(moduleDescriptors);

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

            RegistrySerializer generator = new RegistrySerializer();

            generator.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

        _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

    {
        try
        {
            enqueue(moduleDescriptors);

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

            RegistrySerializer generator = new RegistrySerializer();

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