Package org.apache.hivemind.impl

Examples of org.apache.hivemind.impl.DefaultClassResolver


        }
    }

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

        RegistrySerializer serializer = new RegistrySerializer();

        serializer.addModuleDescriptorProvider(provider);
View Full Code Here


     */

    protected ClassResolver getClassResolver()
    {
        if (_classResolver == null)
            _classResolver = new DefaultClassResolver();

        return _classResolver;
    }
View Full Code Here

    private Module newModule()
    {
        ModuleImpl result = new ModuleImpl();

        result.setClassResolver(new DefaultClassResolver());
        result.setPackageName("");

        return result;
    }
View Full Code Here

        // here that aren't necessary in an ordinary HiveMind application.

        String projectRoot = System.getProperty("PROJECT_ROOT", ".");
        String path = projectRoot + "/examples/src/descriptor/META-INF/" + fileName;

        ClassResolver resolver = new DefaultClassResolver();
        RegistryBuilder builder = new RegistryBuilder();

        builder.addModuleDescriptorProvider(new XmlModuleDescriptorProvider(resolver));

        // Register the examples.xml file, which (given its non-standard name)
View Full Code Here

*/
public class TestPropertyUtils extends HiveMindTestCase
{
    private Location makeLocation(int line)
    {
        Resource r = new ClasspathResource(new DefaultClassResolver(), "/foo/bar");

        return new LocationImpl(r, line);
    }
View Full Code Here

        _module.getModuleId();
        c.setReturnValue("some.id");

        _module.getClassResolver();
        c.setReturnValue(new DefaultClassResolver());

    }
View Full Code Here

    {
        MockControl control = newControl(Module.class);
        Module m = (Module) control.getMock();

        m.getClassResolver();
        control.setReturnValue(new DefaultClassResolver());

        replayControls();

        CreateClassServiceConstructor c = new CreateClassServiceConstructor();
View Full Code Here

    {
        MockControl control = newControl(Module.class);
        Module m = (Module) control.getMock();

        m.getClassResolver();
        control.setReturnValue(new DefaultClassResolver());

        replayControls();

        CreateClassServiceConstructor c = new CreateClassServiceConstructor();
View Full Code Here

        URL[] urls = new URL[] { f.toURL()};

        ClassLoader loader =
            new URLClassLoader(urls, Thread.currentThread().getContextClassLoader());

        ClassResolver resolver = new DefaultClassResolver(loader);

        RegistryBuilder b = new RegistryBuilder();
        b.processModules(resolver);

        RegistryInfrastructure r =
View Full Code Here

        assertNotNull(h.getErrorHandler());
    }

    public void testBuilderClassResolverFacet()
    {
        ClassResolver cr = new DefaultClassResolver();

        MockControl control = newControl(Module.class);
        Module module = (Module) control.getMock();

        module.getClassResolver();
View Full Code Here

TOP

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

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.