Package org.apache.hivemind.parse

Examples of org.apache.hivemind.parse.ImplementationDescriptor


        md = parser.processResource(getResource("ContributePrivate.xml"));

        ContributionDescriptor cd = (ContributionDescriptor) md.getContributions().get(0);

        ImplementationDescriptor id = (ImplementationDescriptor) md.getImplementations().get(0);

        InterceptorDescriptor itd = (InterceptorDescriptor) id.getInterceptors().get(0);

        cons.addModuleDescriptor(md);

        assembly.performPostProcessing();

        // Training

        errorHandler
                .error(
                        LOG,
                        "Service point hivemind.test.privates.PrivateService is not visible to module hivemind.test.contribprivates.",
                        id.getInstanceBuilder().getLocation(),
                        null);

        errorHandler
                .error(
                        LOG,
View Full Code Here


        List implementations = md.getImplementations();
        int count = size(implementations);

        for (int i = 0; i < count; i++)
        {
            ImplementationDescriptor impl = (ImplementationDescriptor) implementations.get(i);

            String pointId = impl.getServiceId();
            String qualifiedId = qualify(moduleId, pointId);

            addImplementations(sourceModule, qualifiedId, impl);
        }
View Full Code Here

        MockControl control = MockControl.createControl(ServicePoint.class);
        ServicePoint mockServicePoint = (ServicePoint) control.getMock();

        new ConfigurationPointDescriptor().toString();
        new ContributionDescriptor().toString();
        new ImplementationDescriptor().toString();
        new CreateInstanceDescriptor().toString();
        new InvokeFactoryDescriptor().toString();
        new ModuleDescriptor().toString();
        new ServicePointDescriptor().toString();
        new InterceptorDescriptor().toString();
View Full Code Here

    {
        ModuleDescriptor md = parse("GenericModule.xml");
        List l = md.getImplementations();
        assertEquals(1, l.size());

        ImplementationDescriptor id1 = (ImplementationDescriptor) l.get(0);

        assertEquals("othermodule.OtherService", id1.getServiceId());

        l = id1.getInterceptors();
        assertEquals(1, l.size());

        InterceptorDescriptor id2 = (InterceptorDescriptor) l.get(0);

        assertEquals("MyInterceptor", id2.getFactoryServiceId());
View Full Code Here

    {
        ModuleDescriptor md = parse("GenericModule.xml");
        List l = md.getImplementations();
        assertEquals(1, l.size());

        ImplementationDescriptor id1 = (ImplementationDescriptor) l.get(0);

        assertEquals("othermodule.OtherService", id1.getServiceId());

        l = id1.getInterceptors();
        assertEquals(1, l.size());

        InterceptorDescriptor id2 = (InterceptorDescriptor) l.get(0);

        assertEquals("MyInterceptor", id2.getFactoryServiceId());
View Full Code Here

    public void testImplementationIf() throws Exception
    {
        ModuleDescriptor md = parse("ImplementationIf.xml");

        List l = md.getImplementations();
        ImplementationDescriptor id = (ImplementationDescriptor) l.get(0);

        assertEquals("class foo.bar.Blat", id.getConditionalExpression());
    }
View Full Code Here

        md = parser.processResource(getResource("ContributePrivate.xml"));

        ContributionDescriptor cd = (ContributionDescriptor) md.getContributions().get(0);

        ImplementationDescriptor id = (ImplementationDescriptor) md.getImplementations().get(0);

        InterceptorDescriptor itd = (InterceptorDescriptor) id.getInterceptors().get(0);

        cons.addModuleDescriptor(md);

        assembly.performPostProcessing();

        // Training

        errorHandler
                .error(
                        LOG,
                        "Service point hivemind.test.privates.PrivateService is not visible to module hivemind.test.contribprivates.",
                        id.getInstanceBuilder().getLocation(),
                        null);

        errorHandler
                .error(
                        LOG,
View Full Code Here

    {
        ModuleDescriptor md = parse("GenericModule.xml");
        List l = md.getImplementations();
        assertEquals(1, l.size());

        ImplementationDescriptor id1 = (ImplementationDescriptor) l.get(0);

        assertEquals("othermodule.OtherService", id1.getServiceId());

        l = id1.getInterceptors();
        assertEquals(1, l.size());

        InterceptorDescriptor id2 = (InterceptorDescriptor) l.get(0);

        assertEquals("MyInterceptor", id2.getFactoryServiceId());
View Full Code Here

    public void testImplementationIf() throws Exception
    {
        ModuleDescriptor md = parse("ImplementationIf.xml");

        List l = md.getImplementations();
        ImplementationDescriptor id = (ImplementationDescriptor) l.get(0);

        assertEquals("class foo.bar.Blat", id.getConditionalExpression());
    }
View Full Code Here

        if (implementations != null)
        {
            for (Iterator i = implementations.iterator(); i.hasNext();)
            {
                ImplementationDescriptor id = (ImplementationDescriptor) i.next();

                Element implementation = getImplementationElement(id);

                module.appendChild(implementation);
            }
View Full Code Here

TOP

Related Classes of org.apache.hivemind.parse.ImplementationDescriptor

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.