Package org.apache.tuscany.sca.assembly.builder

Examples of org.apache.tuscany.sca.assembly.builder.CompositeBuilder


        // Build the domain composite
        SCADefinitions aggregatedDefinitions = new SCADefinitionsImpl();
        for (SCADefinitions definition : policyDefinitions) {
            SCADefinitionsUtil.aggregateSCADefinitions(definition, aggregatedDefinitions);
        }
        CompositeBuilder compositeBuilder = new CompositeBuilderImpl(assemblyFactory, null, scaBindingFactory,
                                     intentAttachPointTypeFactory, documentBuilderFactory, transformerFactory,
                                     contractMapper, aggregatedDefinitions, monitor, bindingMap);
        try {
            compositeBuilder.build(domainComposite);
            analyzeProblems();
        } catch (Exception e) {
            response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, getDescription(e));
            return;
        }       
View Full Code Here


    @Test
    public void testBuild() throws Exception {
        Definitions definitions = load("test_definitions.xml");
        Composite composite = load("Calculator.composite");
       
        CompositeBuilder uriBuilder = new StructuralURIBuilderImpl(extensionPoints);

        BuilderContext builderContext = new BuilderContext(extensionPoints);
        builderContext.setDefinitions(definitions);
        composite = uriBuilder.build(composite, builderContext);
        PolicyAttachmentBuilderImpl builder = new PolicyAttachmentBuilderImpl(extensionPoints);
        builder.build(composite, builderContext);
    }
View Full Code Here

        domainComposite.setName(new QName(Base.SCA11_NS, ""));
        domainComposite.setLocal(false);
        domainComposite.getIncludes().add(composite1);
        domainComposite.getIncludes().add(composite2);

        CompositeBuilder includeBuilder = new CompositeIncludeBuilderImpl();
        CompositeBuilder cloneBuilder = new CompositeCloneBuilderImpl();
        CompositeBuilder uriBuilder = new StructuralURIBuilderImpl(extensionPoints);

        BuilderContext context = new BuilderContext(extensionPoints);
        context.setDefinitions(definitions);
        domainComposite = cloneBuilder.build(domainComposite, context);
        domainComposite = includeBuilder.build(domainComposite, context);
        domainComposite = uriBuilder.build(domainComposite, context);

        PolicyAttachmentBuilderImpl builder = new PolicyAttachmentBuilderImpl(extensionPoints);
        domainComposite = builder.build(domainComposite, context);

    }
View Full Code Here

            }
           
        }
       
        // Build the SCA composites
        CompositeBuilder compositeBuilder = runtime.getCompositeBuilder();
       
        for (Composite composite: domainComposite.getIncludes()) {
            try {
                compositeBuilder.build(composite);
            } catch (CompositeBuilderException e) {
                throw new ServiceRuntimeException(e);
            }
        }
View Full Code Here

    @Test
    public void testBuild() throws Exception {
        Definitions definitions = load("test_definitions.xml");
        Composite composite = load("Calculator.composite");
       
        CompositeBuilder uriBuilder = new StructuralURIBuilderImpl(extensionPoints);

        BuilderContext builderContext = new BuilderContext(extensionPoints);
        builderContext.setDefinitions(definitions);
        composite = uriBuilder.build(composite, builderContext);
        PolicyAttachmentBuilderImpl builder = new PolicyAttachmentBuilderImpl(extensionPoints);
        builder.build(composite, builderContext);
    }
View Full Code Here

        domainComposite.setName(new QName(Base.SCA11_NS, ""));
        domainComposite.setLocal(false);
        domainComposite.getIncludes().add(composite1);
        domainComposite.getIncludes().add(composite2);

        CompositeBuilder includeBuilder = new CompositeIncludeBuilderImpl();
        CompositeBuilder cloneBuilder = new CompositeCloneBuilderImpl();
        CompositeBuilder uriBuilder = new StructuralURIBuilderImpl(extensionPoints);

        BuilderContext context = new BuilderContext(extensionPoints);
        context.setDefinitions(definitions);
        domainComposite = cloneBuilder.build(domainComposite, context);
        domainComposite = includeBuilder.build(domainComposite, context);
        domainComposite = uriBuilder.build(domainComposite, context);

        PolicyAttachmentBuilderImpl builder = new PolicyAttachmentBuilderImpl(extensionPoints);
        domainComposite = builder.build(domainComposite, context);

    }
View Full Code Here

            }

        }

        // Build the SCA composites
        CompositeBuilder compositeBuilder = runtime.getCompositeBuilder();

        for (Composite composite : domainComposite.getIncludes()) {
            try {
                compositeBuilder.build(composite);
            } catch (CompositeBuilderException e) {
                throw new ServiceRuntimeException(e);
            }
        }
View Full Code Here

        // Build the domain composite
        SCADefinitions aggregatedDefinitions = new SCADefinitionsImpl();
        for (SCADefinitions definition : policyDefinitions) {
            SCADefinitionsUtil.aggregateSCADefinitions(definition, aggregatedDefinitions);
        }
        CompositeBuilder compositeBuilder = new CompositeBuilderImpl(assemblyFactory, null, scaBindingFactory,
                                     intentAttachPointTypeFactory, documentBuilderFactory, transformerFactory,
                                     contractMapper, aggregatedDefinitions, monitor, bindingMap);
        try {
            compositeBuilder.build(domainComposite);
            analyzeProblems();
        } catch (Exception e) {
            response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, getDescription(e));
            return;
        }       
View Full Code Here

        // Build the domain composite
        SCADefinitions aggregatedDefinitions = new SCADefinitionsImpl();
        for (SCADefinitions definition : policyDefinitions) {
            SCADefinitionsUtil.aggregateSCADefinitions(definition, aggregatedDefinitions);
        }
        CompositeBuilder compositeBuilder = new CompositeBuilderImpl(assemblyFactory, null, scaBindingFactory,
                                     intentAttachPointTypeFactory, documentBuilderFactory, transformerFactory,
                                     contractMapper, aggregatedDefinitions, monitor, bindingMap);
        try {
            compositeBuilder.build(domainComposite);
            analyzeProblems();
        } catch (Exception e) {
            response.sendError(HttpServletResponse.SC_INTERNAL_SERVER_ERROR, getDescription(e));
            return;
        }       
View Full Code Here

            }

        }

        // Build the SCA composites
        CompositeBuilder compositeBuilder = runtime.getCompositeBuilder();

        for (Composite composite : domainComposite.getIncludes()) {
            try {
                compositeBuilder.build(composite);
            } catch (CompositeBuilderException e) {
                throw new ServiceRuntimeException(e);
            }
        }
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.assembly.builder.CompositeBuilder

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.