Package org.apache.hivemind.parse

Examples of org.apache.hivemind.parse.InterceptorDescriptor


            addServiceInstanceBuilder(sourceModule, pointId, builder);

        int count = size(interceptors);
        for (int i = 0; i < count; i++)
        {
            InterceptorDescriptor ind = (InterceptorDescriptor) interceptors.get(i);
            addInterceptor(sourceModule, pointId, ind);
        }
    }
View Full Code Here


        assertEquals("package.impl.MyServiceImpl", cid.getInstanceClassName());

        l = spd.getInterceptors();
        assertEquals(2, l.size());

        InterceptorDescriptor id = (InterceptorDescriptor) l.get(0);
        assertEquals("MyInterceptor", id.getFactoryServiceId());
        assertEquals("OtherInterceptor", id.getBefore());
        assertEquals("MyInterceptorName", id.getName());

        id = (InterceptorDescriptor) l.get(1);
        assertEquals("OtherInterceptor", id.getFactoryServiceId());
        assertEquals("MyInterceptorName", id.getAfter());
        assertNull(id.getName());
    }
View Full Code Here

        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

        new InvokeFactoryDescriptor().toString();
        new ModuleDescriptor(_resolver, new DefaultErrorHandler()).toString();
        new SubModuleDescriptor().toString();
        new DependencyDescriptor().toString();
        new ServicePointDescriptor().toString();
        new InterceptorDescriptor().toString();
        new ModuleImpl().toString();
        new RegistryInfrastructureImpl(null, Locale.ENGLISH).toString();
        new ContributionImpl().toString();
        new ConfigurationPointImpl().toString();
        new ElementImpl().toString();
View Full Code Here

        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,
                        "Service point hivemind.test.privates.PrivateService is not visible to module hivemind.test.contribprivates.",
                        itd.getLocation(),
                        null);

        errorHandler
                .error(
                        LOG,
View Full Code Here

TOP

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

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.