Package org.apache.tuscany.sca.workspace.builder.impl

Examples of org.apache.tuscany.sca.workspace.builder.impl.ContributionDependencyBuilderImpl


       
        // Get the model resolvers
        modelResolvers = extensionPoints.getExtensionPoint(ModelResolverExtensionPoint.class);
       
        // Create a contribution dependency builder
        contributionDependencyBuilder = new ContributionDependencyBuilderImpl(monitor);
       
        // Create a composite builder
        SCABindingFactory scaBindingFactory = modelFactories.getFactory(SCABindingFactory.class);
        IntentAttachPointTypeFactory attachPointTypeFactory = modelFactories.getFactory(IntentAttachPointTypeFactory.class);
        InterfaceContractMapper contractMapper = utilities.getUtility(InterfaceContractMapper.class);
View Full Code Here


            // Look for the specified contribution
            for (Contribution contribution: workspace.getContributions()) {
                if (key.equals(contribution.getURI())) {

                    // Compute the contribution dependencies
                    ContributionDependencyBuilder analyzer = new ContributionDependencyBuilderImpl(null);
                    List<Contribution> dependencies = analyzer.buildContributionDependencies(workspace, contribution);
                   
                    // Returns entries for the dependencies
                    // optionally skip the specified contribution
                    boolean allDependencies = queryString.startsWith("alldependencies=");
                    for (Contribution dependency: dependencies) {
View Full Code Here

                problems.add(problem.getMessage() + " " + problem.getModel());
            }
        };
       
        StringBuffer sb = new StringBuffer();
        ContributionDependencyBuilderImpl analyzer = new ContributionDependencyBuilderImpl(monitor);
        List<Contribution> dependencies = analyzer.buildContributionDependencies(workspace, contribution);
        if (dependencies.size() > 1) {
            sb.append("Dependencies: <span id=\"dependencies\">");
            for (int i = 0, n = dependencies.size(); i < n ; i++) {
                if (i > 0) {
                    sb.append("  ");
View Full Code Here

        workspace.getContributions().add(another);
        export = importExportFactory.createNamespaceExport();
        export.setNamespace("http://another");
        another.getExports().add(export);
       
        ContributionDependencyBuilderImpl analyzer = new ContributionDependencyBuilderImpl(null);
        List<Contribution> dependencies = analyzer.buildContributionDependencies(workspace, importer);
        assertTrue(dependencies.size() == 3);
        assertTrue(dependencies.contains(importer));
        assertTrue(dependencies.contains(imported));
        assertTrue(dependencies.contains(imported2));
    }
View Full Code Here

        workspace.getContributions().add(another);
        export = importExportFactory.createNamespaceExport();
        export.setNamespace("http://another");
        another.getExports().add(export);
       
        ContributionDependencyBuilderImpl analyzer = new ContributionDependencyBuilderImpl(null);
        List<Contribution> dependencies = analyzer.buildContributionDependencies(workspace, importer);
        assertTrue(dependencies.size() == 3);
        assertTrue(dependencies.contains(importer));
        assertTrue(dependencies.contains(imported));
        assertTrue(dependencies.contains(imported2));
    }
View Full Code Here

            // Look for the specified contribution
            for (Contribution contribution: workspace.getContributions()) {
                if (key.equals(contribution.getURI())) {

                    // Compute the contribution dependencies
                    ContributionDependencyBuilder analyzer = new ContributionDependencyBuilderImpl(null);
                    List<Contribution> dependencies = analyzer.buildContributionDependencies(workspace, contribution);
                   
                    // Returns entries for the dependencies
                    // optionally skip the specified contribution
                    boolean allDependencies = queryString.startsWith("alldependencies=");
                    for (Contribution dependency: dependencies) {
View Full Code Here

                problems.add(problem.getMessage() + " " + problem.getModel());
            }
        };
       
        StringBuffer sb = new StringBuffer();
        ContributionDependencyBuilderImpl analyzer = new ContributionDependencyBuilderImpl(monitor);
        List<Contribution> dependencies = analyzer.buildContributionDependencies(workspace, contribution);
        if (dependencies.size() > 1) {
            sb.append("Dependencies: <span id=\"dependencies\">");
            for (int i = 0, n = dependencies.size(); i < n ; i++) {
                if (i > 0) {
                    sb.append("  ");
View Full Code Here

        modelResolvers = extensionPoints.getExtensionPoint(ModelResolverExtensionPoint.class);
        contributionProcessor = new ContributionContentProcessor(extensionPoints, monitor, policyDefinitionsResolver, policyDefinitions);
       
        // Create contribution and composite builders
        transformerFactory = modelFactories.getFactory(TransformerFactory.class);
        contributionDependencyBuilder = new ContributionDependencyBuilderImpl(monitor);
        scaBindingFactory = modelFactories.getFactory(SCABindingFactory.class);
        intentAttachPointTypeFactory = modelFactories.getFactory(IntentAttachPointTypeFactory.class);
        contractMapper = utilities.getUtility(InterfaceContractMapper.class);
        compositeIncludeBuilder = new CompositeIncludeBuilderImpl(monitor);
        bindingMap = new HashMap<Binding, Binding>();
View Full Code Here

        .getExtensionPoint(ModelResolverExtensionPoint.class);
    contributionProcessor = new ContributionContentProcessor(
        extensionPoints, monitor);

    // Create contribution and composite builders
    contributionDependencyBuilder = new ContributionDependencyBuilderImpl(
        monitor);
  }
View Full Code Here

            // Look for the specified contribution
            for (Contribution contribution: workspace.getContributions()) {
                if (key.equals(contribution.getURI())) {               

                    // Compute the contribution dependencies
                    ContributionDependencyBuilder analyzer = new ContributionDependencyBuilderImpl(monitor);
                    List<Contribution> dependencies = analyzer.buildContributionDependencies(contribution, workspace);
                   
                    // Returns entries for the dependencies
                    // optionally skip the specified contribution
                    boolean allDependencies = queryString.startsWith("alldependencies=");
                    for (Contribution dependency: dependencies) {
View Full Code Here

TOP

Related Classes of org.apache.tuscany.sca.workspace.builder.impl.ContributionDependencyBuilderImpl

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.