Package org.apache.hivemind.parse

Examples of org.apache.hivemind.parse.InstanceBuilder


    /**
     * Adds one implementation and its interceptors to a module definition.
     */
    private void addImplementationAndInterceptors(ModuleDefinitionImpl sourceModule, String qualifiedPointId, ImplementationDescriptor id)
    {
        InstanceBuilder builder = id.getInstanceBuilder();
        List interceptors = id.getInterceptors();

        if (builder != null) {
            ImplementationDefinitionImpl implementation = new ImplementationDefinitionImpl(
                    sourceModule, builder.getLocation(), builder.createConstructor(sourceModule.getId()),
                    builder.getServiceModel(), false);
            sourceModule.addImplementation(qualifiedPointId, implementation);
        }
       
        int count = size(interceptors);
        for (int i = 0; i < count; i++)
View Full Code Here


     * definition.
     */
    private void addInternalImplementations(ModuleDefinitionImpl module, ServicePointDefinitionImpl point,
            ServicePointDescriptor spd)
    {
        InstanceBuilder builder = spd.getInstanceBuilder();
        List interceptors = spd.getInterceptors();
        String pointId = point.getId();

        if (builder == null && interceptors == null)
            return;

        if (builder != null) {
            ImplementationDefinition implementation = new ImplementationDefinitionImpl(
                    module, builder.getLocation(), builder.createConstructor(module.getId()),
                    builder.getServiceModel(), false);
            point.addImplementation(implementation);
        }
        if (interceptors == null)
            return;

View Full Code Here

     * definition.
     */
    private void addInternalImplementations(Module sourceModule, String pointId,
            ServicePointDescriptor spd)
    {
        InstanceBuilder builder = spd.getInstanceBuilder();
        List interceptors = spd.getInterceptors();

        if (builder == null && interceptors == null)
            return;

View Full Code Here

     * Adds ordinary service contributions.
     */

    private void addImplementations(Module sourceModule, String pointId, ImplementationDescriptor id)
    {
        InstanceBuilder builder = id.getInstanceBuilder();
        List interceptors = id.getInterceptors();

        if (builder != null)
            addServiceInstanceBuilder(sourceModule, pointId, builder, false);

View Full Code Here

        if (spd.getParametersSchema() != null)
            addSchema(servicePoint, (SchemaImpl) spd.getParametersSchema(), "parameters-schema");
        else if (spd.getParametersSchemaId() != null)
            servicePoint.setAttribute("parameters-schema-id", qualify(spd.getParametersSchemaId()));

        InstanceBuilder ib = spd.getInstanceBuilder();

        if (ib != null)
        {
            Element instanceBuilder = getInstanceBuilderElement(ib);
View Full Code Here

        if (id.getConditionalExpression() != null)
            implementation.setAttribute("if", id.getConditionalExpression());

        implementation.appendChild(_document.createTextNode(id.getAnnotation()));

        InstanceBuilder ib = id.getInstanceBuilder();

        if (ib != null)
        {
            Element instanceBuilder = getInstanceBuilderElement(ib);
View Full Code Here

    private void addInternalImplementations(
        ModuleImpl sourceModule,
        String pointId,
        ServicePointDescriptor spd)
    {
        InstanceBuilder builder = spd.getInstanceBuilder();
        List interceptors = spd.getInterceptors();

        if (builder == null && interceptors == null)
            return;
View Full Code Here

    private void addImplementations(
        ModuleImpl sourceModule,
        String pointId,
        ImplementationDescriptor id)
    {
        InstanceBuilder builder = id.getInstanceBuilder();
        List interceptors = id.getInterceptors();

        if (builder != null)
            addServiceInstanceBuilder(sourceModule, pointId, builder);
View Full Code Here

        if (spd.getParametersSchema() != null)
            addSchema(servicePoint, (SchemaImpl) spd.getParametersSchema(), "parameters-schema");
        else if (spd.getParametersSchemaId() != null)
            servicePoint.setAttribute("parameters-schema-id", qualify(spd.getParametersSchemaId()));

        InstanceBuilder ib = spd.getInstanceBuilder();

        if (ib != null)
        {
            Element instanceBuilder = getInstanceBuilderElement(ib);
View Full Code Here

        if (id.getConditionalExpression() != null)
            implementation.setAttribute("if", id.getConditionalExpression());

        implementation.appendChild(_document.createTextNode(id.getAnnotation()));

        InstanceBuilder ib = id.getInstanceBuilder();

        if (ib != null)
        {
            Element instanceBuilder = getInstanceBuilderElement(ib);
View Full Code Here

TOP

Related Classes of org.apache.hivemind.parse.InstanceBuilder

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.