Examples of addContribution()


Examples of org.apache.tuscany.sca.node.configuration.NodeConfiguration.addContribution()

    private NodeConfiguration createConfiguration(Contribution... contributions) {
        NodeConfigurationFactory factory = this;
        NodeConfiguration configuration = factory.createNodeConfiguration();
        if (contributions != null) {
            for (Contribution c : contributions) {
                configuration.addContribution(c.getURI(), c.getLocation());
            }
        }
        return configuration;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.configuration.NodeConfiguration.addContribution()

            while (names.hasMoreElements()) {
                String name = names.nextElement();
                if (name.startsWith("contribution.")) {
                    String contrib = servletContext.getInitParameter(name);
                    if (contrib != null) {
                        configuration.addContribution(getResource(servletContext, contrib));
                    }
                }
            }
            if (configuration.getContributions().isEmpty()) {
                // TODO: Which path should be the default root
View Full Code Here

Examples of org.apache.tuscany.sca.node.configuration.NodeConfiguration.addContribution()

                    }
                }
            }
            if (configuration.getContributions().isEmpty()) {
                // TODO: Which path should be the default root
                configuration.addContribution(getResource(servletContext, "/"));
            }
            URL composite = getResource(servletContext, "/WEB-INF/web.composite");
            if (composite != null) {
                configuration.getContributions().get(0).addDeploymentComposite(composite);
            }
View Full Code Here

Examples of org.apache.tuscany.sca.node.configuration.NodeConfiguration.addContribution()

        }
        // Make sure a unique node URI is created for the same node factory
        configuration.setURI(generateNodeURI());
        if (contributions != null) {
            for (Contribution c : contributions) {
                configuration.addContribution(c.getURI(), c.getLocation());
            }
        }
        return configuration;
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.configuration.NodeConfiguration.addContribution()

                        for (String path : parse(listOfValues)) {
                            if ("".equals(path)) {
                                continue;
                            }
                            File f = new File(getResource(servletContext, path).toURI());
                            configuration.addContribution(f.toURI().toURL());
                        }
                    }
                } else if (name.equals(CONTRIBUTIONS) || name.startsWith(CONTRIBUTIONS + ".")) {
                    String listOfValues = (String)servletContext.getAttribute(name);
                    if (listOfValues != null) {
View Full Code Here

Examples of org.eclipse.sapphire.ui.assist.PropertyEditorAssistSection.addContribution()

            final PropertyEditorAssistContribution.Factory contribution = PropertyEditorAssistContribution.factory();
            contribution.text( "<li style=\"image\" value=\"problem\">" + escapeForXml( status.message() ) + "</li>" );
            contribution.image( "problem", image );
           
            final PropertyEditorAssistSection section = context.getSection( SECTION_ID_PROBLEMS );
            section.addContribution( contribution.create() );
        }
    }

    @Override
    public void dispose()
View Full Code Here

Examples of org.jitterbit.integration.client.ui.interchange.entity.operation.graph2d.toolbar.OperationGraphToolbar.addContribution()

        graphListeners.remove(lst);
    }

    private void installToolbar() {
        OperationGraphToolbar toolbar = new OperationGraphToolbar();
        toolbar.addContribution(new OnSuccessToolbarContribution(controller));
        toolbar.addContribution(new OnFailureToolbarContribution(controller));
        toolbar.register(graph);
        graph.getOverlayContainer().addOverlay(toolbar.getUi(), OverlayCornerPositioner.UPPER_RIGHT);
    }
View Full Code Here

Examples of org.spw.model.VolunteerApplication.addContribution()

    public String buttonValidate_action() {
        VolunteerApplicationController ctrl = new VolunteerApplicationController();
        Contribution contribution = getSessionBean1().getContribution();
        VolunteerApplication application = getSessionBean1().getContributionDataProvider().getApplication();
        if (!application.getContributions().contains(contribution)) {
            application.addContribution(contribution);
        }
        ctrl.update(application);
       
        return "success";
    }
View Full Code Here

Examples of org.spw.model.VolunteerApplication.addContribution()

    public String buttonValidate_action() {
        VolunteerApplicationController ctrl = new VolunteerApplicationController();
        Contribution contribution = getSessionBean1().getContribution();
        VolunteerApplication application = getSessionBean1().getContributionDataProvider().getApplication();
        if (!application.getContributions().contains(contribution)) {
            application.addContribution(contribution);
        }
        ctrl.update(application);
       
        return "success";
    }
View Full Code Here

Examples of org.spw.model.VolunteerApplication.addContribution()

                contrib.setMeansOfPayment("Cheque");
            else
                contrib.setMeansOfPayment("JustGiving");
            contrib.setPayer(getName());
            contrib.setReference(Integer.toString(i));
            application.addContribution(contrib);
        }
       
        VolunteerDetailsFundraisingXmlReport instance =
                new VolunteerDetailsFundraisingXmlReport(volunteer);
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.