Package org.apache.hivemind.internal

Examples of org.apache.hivemind.internal.RegistryInfrastructure


        // Process any deferred operations. Post processing is added by
        // both the parser and the registry constructor.

        _registryAssembly.performPostProcessing();

        RegistryInfrastructure infrastructure = _constructor
                .constructRegistryInfrastructure(locale);

        infrastructure.startup();

        return new RegistryImpl(infrastructure);
    }
View Full Code Here


        // Process any deferred operations. Post processing is added by
        // both the parser and the registry constructor.

        _registryAssembly.performPostProcessing();

        RegistryInfrastructure infrastructure = _constructor
                .constructRegistryInfrastructure(locale);

        infrastructure.startup();

        return new RegistryImpl(infrastructure);
    }
View Full Code Here

                LogFactory.getLog(TestRegistryInfrastructureConstructor.class), null);

        ric.addModuleDescriptor(fooBar);
        ric.addModuleDescriptor(zipZoop);

        RegistryInfrastructure registry = ric.constructRegistryInfrastructure(Locale.getDefault());

        ConfigurationPoint point = registry.getConfigurationPoint("zip.zoop.Zap", null);
        assertEquals(schema, point.getContributionsSchema());

        verifyControls();
    }
View Full Code Here

        RegistryInfrastructureConstructor ric = new RegistryInfrastructureConstructor(eh, log, null);

        ric.addModuleDescriptor(md);

        RegistryInfrastructure ri = ric.constructRegistryInfrastructure(Locale.getDefault());

        List l = ri.getConfiguration("zip.zoop.Fred", null);

        Element e = (Element) l.get(0);

        assertEquals("foo", e.getElementName());
View Full Code Here

        RegistryInfrastructureConstructor ric = new RegistryInfrastructureConstructor(eh, log, null);

        ric.addModuleDescriptor(md);

        RegistryInfrastructure ri = ric.constructRegistryInfrastructure(Locale.getDefault());

        List l = ri.getConfiguration("zip.zoop.Fred", null);

        assertTrue(l.isEmpty());

        verifyControls();
    }
View Full Code Here

        RegistryInfrastructureConstructor ric = new RegistryInfrastructureConstructor(eh, log, null);

        ric.addModuleDescriptor(md);

        RegistryInfrastructure ri = ric.constructRegistryInfrastructure(Locale.getDefault());

        List l = ri.getConfiguration("zip.zoop.Fred", null);

        assertTrue(l.isEmpty());

        verifyControls();
    }
View Full Code Here

{

  public void testGetServiceByInterface()
  {
    MockControl rc = newControl(RegistryInfrastructure.class);
    RegistryInfrastructure r = (RegistryInfrastructure) rc.getMock();
   
    ModuleImpl m = new ModuleImpl();
    m.setRegistry(r);
   
    StringHolder h = new StringHolderImpl();
   
    r.getService(StringHolder.class, m);
    rc.setReturnValue(h);
   
    replayControls();
   
    Object result = m.getService(StringHolder.class);
View Full Code Here

        // Process any deferred operations. Post processing is added by
        // both the parser and the registry constructor.

        _registryAssembly.performPostProcessing();

        RegistryInfrastructure infrastructure = _constructor
                .constructRegistryInfrastructure(locale);

        infrastructure.startup();

        return new RegistryImpl(infrastructure);
    }
View Full Code Here

    protected RegistryInfrastructure createRegistryForContribution(TranslatorContribution tc)
    {
        List l = Collections.singletonList(tc);

        MockControl c = newControl(RegistryInfrastructure.class);
        RegistryInfrastructure result = (RegistryInfrastructure) c.getMock();

        result.getConfiguration(TranslatorManager.TRANSLATORS_CONFIGURATION_ID, null);
        c.setReturnValue(l);

        return result;
    }
View Full Code Here

    public void testNoClassOrService()
    {
        TranslatorContribution tc = new TranslatorContribution();
        tc.setName("invalid");

        RegistryInfrastructure r = createRegistryForContribution(tc);

        ErrorHandler eh = (ErrorHandler) newMock(ErrorHandler.class);

        eh
                .error(
View Full Code Here

TOP

Related Classes of org.apache.hivemind.internal.RegistryInfrastructure

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.