Package org.apache.hivemind.definition

Examples of org.apache.hivemind.definition.ServicePointDefinition


        return result;
    }

    public ServicePointDefinition addServicePointWithDefaultImplementation(String servicePointId, String serviceInterface)
    {
        ServicePointDefinition result = addServicePoint(servicePointId, serviceInterface);
        String defaultImplementationName = serviceInterface + "Impl";
        addSimpleServiceImplementation(result, defaultImplementationName, ServiceModel.SINGLETON);
        return result;
    }
View Full Code Here


    {
        String moduleId = md.getId();

        for (Iterator services = md.getServicePoints().iterator(); services.hasNext();)
        {
            ServicePointDefinition sd = (ServicePointDefinition) services.next();

            String pointId = moduleId + "." + sd.getId();

            if (_log.isDebugEnabled())
                _log.debug("Creating service point " + pointId);

            // Choose which class to instantiate based on
View Full Code Here

    private Registry createRegistryWithPojo(final String serviceModel)
    {
        ModuleDefinitionImpl module = createModuleDefinition("bean");
        ModuleDefinitionHelper helper = new ModuleDefinitionHelper(module);

        ServicePointDefinition sp1 = helper.addServicePoint("Reverser", Reverser.class.getName());
        helper.addSimpleServiceImplementation(sp1, Reverser.class.getName(), serviceModel);

        return buildFrameworkRegistry(module);
    }   
View Full Code Here

TOP

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

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.