Package org.apache.hivemind.definition

Examples of org.apache.hivemind.definition.ImplementationConstructionContext


        ImplementationConstructor constructor = implementationDefinition.getServiceConstructor();
        // Get a reference to the module that provided the implementation
        String definingModuleId = implementationDefinition.getModuleId();
       
        Module definingModule = getRegistry().getModule(definingModuleId);
        ImplementationConstructionContext context = new ImplementationConstructionContextImpl(definingModule,
                _servicePoint);
        Object result = constructor.constructCoreServiceImplementation(context);

        if (result == null)
            throw new ApplicationRuntimeException(ServiceModelMessages
View Full Code Here


        replayControls();

        c.setFactoryServiceId("foo.bar.Baz");
        c.setParameters(Collections.EMPTY_LIST);

        ImplementationConstructionContext context = new ImplementationConstructionContextImpl(module, point);
        assertEquals("THE SERVICE", c.constructCoreServiceImplementation(context));

        verifyControls();
    }
View Full Code Here

        replayControls();

        CreateClassServiceConstructor c = new CreateClassServiceConstructor(newLocation(),
                "java.util.HashMap");

        ImplementationConstructionContext context = new ImplementationConstructionContextImpl(m, sp);
        Object o1 = c.constructCoreServiceImplementation(context);
        Object o2 = c.constructCoreServiceImplementation(context);

        assertNotSame(o1, o2);
View Full Code Here

        ServicePoint sp = new ServicePointImpl(m, null);

        CreateClassServiceConstructor c = new CreateClassServiceConstructor(newLocation(),
                SimpleBean.class.getName() + ",value=HiveMind");

        ImplementationConstructionContext context = new ImplementationConstructionContextImpl(m, sp);
        SimpleBean b = (SimpleBean) c.constructCoreServiceImplementation(context);

        assertEquals("HiveMind", b.getValue());
    }
View Full Code Here

        CreateClassServiceConstructor c = new CreateClassServiceConstructor(newLocation(),
                PrivateBean.class.getName());

        try
        {
            ImplementationConstructionContext context = new ImplementationConstructionContextImpl(m, sp);
            c.constructCoreServiceImplementation(context);
            unreachable();
        }
        catch (Exception ex)
        {
View Full Code Here

TOP

Related Classes of org.apache.hivemind.definition.ImplementationConstructionContext

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.