Package org.apache.hivemind.impl

Examples of org.apache.hivemind.impl.InvokeFactoryServiceConstructor


            if (!id.getServiceModel().equals("singleton"))
                instanceBuilder.setAttribute("model", id.getServiceModel());
        }
        else
        {
            InvokeFactoryServiceConstructor ifd = (InvokeFactoryServiceConstructor) ib;
            instanceBuilder = _document.createElement("invoke-factory");

            if (!ifd.getFactoryServiceId().equals("hivemind.BuilderFactory"))
                instanceBuilder.setAttribute("service-id", qualify(ifd.getFactoryServiceId()));
            if (id.getServiceModel() != null)
                instanceBuilder.setAttribute("model", id.getServiceModel());

            List parameters = ifd.getParameters();

            if (parameters != null)
            {
                for (Iterator i = parameters.iterator(); i.hasNext();)
                {
View Full Code Here


    private String _serviceModel;

    public ImplementationConstructor createConstructor(
        String contributingModuleId)
    {
        InvokeFactoryServiceConstructor result = new InvokeFactoryServiceConstructor(getLocation(),
                contributingModuleId);

        result.setParameters(getParameters());
        result.setFactoryServiceId(getFactoryServiceId());

        return result;
    }
View Full Code Here

    public ServiceImplementationConstructor createConstructor(
        ServicePoint point,
        Module contributingModule)
    {
        InvokeFactoryServiceConstructor result = new InvokeFactoryServiceConstructor();

        result.setLocation(getLocation());
        result.setContributingModule(contributingModule);
        result.setParameters(getParameters());
        result.setFactoryServiceId(getFactoryServiceId());
        result.setServiceExtensionPoint(point);

        return result;
    }
View Full Code Here

    public void testInvokeFactoryServiceConstructorAccessors()
    {
        Module m = new ModuleImpl();
        ServicePoint sep = new ServicePointImpl();
        List p = new ArrayList();
        InvokeFactoryServiceConstructor c = new InvokeFactoryServiceConstructor();

        c.setContributingModule(m);
        c.setServiceExtensionPoint(sep);
        c.setParameters(p);

        assertSame(m, c.getContributingModule());
        assertSame(sep, c.getServiceExtensionPoint());
        assertSame(p, c.getParameters());
    }
View Full Code Here

    public void testInvokeFactoryServiceConstructorAccessors()
    {
        Module m = new ModuleImpl();
        ServicePoint sep = new ServicePointImpl();
        List p = new ArrayList();
        InvokeFactoryServiceConstructor c = new InvokeFactoryServiceConstructor();

        c.setContributingModule(m);
        c.setServiceExtensionPoint(sep);
        c.setParameters(p);

        assertSame(m, c.getContributingModule());
        assertSame(sep, c.getServiceExtensionPoint());
        assertSame(p, c.getParameters());
    }
View Full Code Here

    public ServiceImplementationConstructor createConstructor(
        ServicePoint point,
        Module contributingModule)
    {
        InvokeFactoryServiceConstructor result = new InvokeFactoryServiceConstructor();

        result.setLocation(getLocation());
        result.setContributingModule(contributingModule);
        result.setParameters(getParameters());
        result.setFactoryServiceId(getFactoryServiceId());
        result.setServiceExtensionPoint(point);

        return result;
    }
View Full Code Here

    public void testInvokeFactoryServiceConstructorAccessors()
    {
        Module m = new ModuleImpl();
        ServicePoint sep = new ServicePointImpl();
        List p = new ArrayList();
        InvokeFactoryServiceConstructor c = new InvokeFactoryServiceConstructor();

        c.setContributingModule(m);
        c.setServiceExtensionPoint(sep);
        c.setParameters(p);

        assertSame(m, c.getContributingModule());
        assertSame(sep, c.getServiceExtensionPoint());
        assertSame(p, c.getParameters());
    }
View Full Code Here

    public void testInvokeFactoryServiceConstructorAccessors()
    {
        Module m = new ModuleImpl();
        ServicePoint sep = new ServicePointImpl();
        List p = new ArrayList();
        InvokeFactoryServiceConstructor c = new InvokeFactoryServiceConstructor();

        c.setContributingModule(m);
        c.setServiceExtensionPoint(sep);
        c.setParameters(p);

        assertSame(m, c.getContributingModule());
        assertSame(sep, c.getServiceExtensionPoint());
        assertSame(p, c.getParameters());
    }
View Full Code Here

    public void testInvokeFactoryServiceConstructorAccessors()
    {
        Module m = new ModuleImpl();
        ServicePoint sep = new ServicePointImpl();
        List p = new ArrayList();
        InvokeFactoryServiceConstructor c = new InvokeFactoryServiceConstructor();

        c.setContributingModule(m);
        c.setServiceExtensionPoint(sep);
        c.setParameters(p);

        assertSame(m, c.getContributingModule());
        assertSame(sep, c.getServiceExtensionPoint());
        assertSame(p, c.getParameters());
    }
View Full Code Here

    public void testInvokeFactoryServiceConstructorAccessors()
    {
        Module m = new ModuleImpl();
        ServicePoint sep = new ServicePointImpl();
        List p = new ArrayList();
        InvokeFactoryServiceConstructor c = new InvokeFactoryServiceConstructor();

        c.setContributingModule(m);
        c.setServiceExtensionPoint(sep);
        c.setParameters(p);

        assertSame(m, c.getContributingModule());
        assertSame(sep, c.getServiceExtensionPoint());
        assertSame(p, c.getParameters());
    }
View Full Code Here

TOP

Related Classes of org.apache.hivemind.impl.InvokeFactoryServiceConstructor

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.