Package org.apache.hivemind.definition.impl

Examples of org.apache.hivemind.definition.impl.ServicePointDefinitionImpl


    {
      super.setUp();
     
        ModuleDefinitionImpl module = createModuleDefinition("hivemind.tests.serviceByInterface");

        ServicePointDefinitionImpl sp1 = createServicePointDefinition(module, "uniqueService", IUniqueService.class);
        ImplementationDefinition impl1 = createServiceImplementationDefinition(module, UniqueServiceImpl.class);
        sp1.addImplementation(impl1);

        module.addServicePoint(sp1);

        ServicePointDefinitionImpl sp2 = createServicePointDefinition(module, "multipleServiceOne", IMultipleService.class);
        ImplementationDefinition impl2 = createServiceImplementationDefinition(module, MultipleServiceImpl.class);
        sp2.addImplementation(impl2);

        module.addServicePoint(sp2);

        ServicePointDefinitionImpl sp3 = createServicePointDefinition(module, "multipleServiceTwo", IMultipleService.class);
        sp3.addImplementation(impl2);
       
        module.addServicePoint(sp3);

        registry = buildFrameworkRegistry(module);
    }
View Full Code Here


        return result;
    }

    private ServicePointImpl newServicePoint(ModuleDefinition moduleDefinition, Location l, Module module)
    {
        ServicePointDefinitionImpl definition = new ServicePointDefinitionImpl(moduleDefinition, "zip.zap", l, Visibility.PUBLIC, "foo.bar.Baz");
        ServicePointImpl sp = new ServicePointImpl(module, definition);
        return sp;
    }
View Full Code Here

TOP

Related Classes of org.apache.hivemind.definition.impl.ServicePointDefinitionImpl

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.