Package org.apache.hivemind.definition

Examples of org.apache.hivemind.definition.ImplementationConstructor


    private void addAutowiring(ModuleDefinition md)
    {
        ServicePointDefinition spd = helper.addServicePoint("Autowiring", Autowiring.class.getName());

        // Define inline implementation constructor, that wires the AutowiringStrategies configuration
        ImplementationConstructor constructor = new AbstractServiceImplementationConstructor(md.getLocation())
        {
            public Object constructCoreServiceImplementation(ImplementationConstructionContext context)
            {
                List strategies = (List) context.getConfiguration("AutowiringStrategies");
                Autowiring result = new AutowiringImpl(context.getRegistry(), strategies, context.getDefiningModule().getErrorHandler());
View Full Code Here


        }
        ServicePointDefinitionImpl spd = new ServicePointDefinitionImpl(module, service.id(), location,
                visibility, method.getReturnType().getName());
        module.addServicePoint(spd);

        ImplementationConstructor constructor = new MethodCallImplementationConstructor(location,
                method, instanceProvider);

        ImplementationDefinition sid = new ImplementationDefinitionImpl(module, location,
                constructor, service.serviceModel(), true);
View Full Code Here

    {
        ModuleDefinitionImpl module = createModuleDefinition("module1");
       
        ServicePointDefinitionImpl sp1 = createServicePointDefinition(module, "Listener", Runnable.class);
       
        ImplementationConstructor constructor = new AbstractServiceImplementationConstructor(newLocation()) {

            public Object constructCoreServiceImplementation(ImplementationConstructionContext context)
            {
                RunnableImpl result = new RunnableImpl();
                result.setType(serviceModel);
View Full Code Here

TOP

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

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.