Examples of Contribution


Examples of org.apache.tuscany.sca.node.Contribution

   * @throws java.lang.Exception
   */
  @BeforeClass
  public static void setUp() throws Exception {
    String location = ContributionLocationHelper.getContributionLocation("greetings/greetings.composite");
    node = NodeFactory.newInstance().createNode("greetings/greetings.composite", new Contribution("c1", location));
    node.start();
  }
View Full Code Here

Examples of org.apache.tuscany.sca.node.Contribution

     * @throws java.lang.Exception
     */
    @BeforeClass
    public static void setUp() throws Exception {
      String location = ContributionLocationHelper.getContributionLocation("helloworld/helloworld.composite");
    node = NodeFactory.newInstance().createNode("helloworld/helloworld.composite", new Contribution("c1", location));
        node.start();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.Contribution

    private Node node;

    @Override
    protected void setUp() throws Exception {
        node =
            NodeFactory.newInstance().createNode(new Contribution("foo",
                                                                  "src/test/resources/repository/contribution.zip"));
        node.start();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.Contribution

    private Node node;

    @Override
    protected void setUp() throws Exception {
        node = NodeFactory.newInstance().createNode(new Contribution("foo", "src/test/resources/repository"));
        node.start();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.equinox.launcher.Contribution

    private static Node node;

    @Override
    protected void setUp() throws Exception {
        launcher = NodeLauncher.newInstance();
        node = launcher.createNode(null, new Contribution("test", "./target/classes"));
        System.out.println("SCA Node API ClassLoader: " + node.getClass().getClassLoader());
        node.start();
    }
View Full Code Here

Examples of org.apache.tuscany.sca.node.launcher.Contribution

        jmsBroker.addConnector("tcp://localhost:61619");
        jmsBroker.start();
       
        NodeLauncher launcher = NodeLauncher.newInstance();
        SCANode node = launcher.createNode(null,
                                           new Contribution("assets", "../assets/target/tutorial-assets.jar"),
                                           new Contribution("warehouse", "../warehouse-spring/target/tutorial-warehouse-spring.jar"));
        node.start();
       
        System.out.println("Press a key to stop");
        try {
            System.in.read();
View Full Code Here

Examples of org.crank.web.contribution.Contribution

     * @param name
     * @throws IOException
     */
    private void outputContributionName(Writer writer, String name)
                                       throws IOException {
        Contribution contribution =
            (Contribution) getObjectRegistry().getObject(name);
        contribution.addToWriter(writer);
    }
View Full Code Here

Examples of org.jamesii.gui.application.Contribution

    }

    // get actual contribution the window is in and only change
    // contribution if
    // window contributes to another view
    Contribution currentContribution = getWindowContribution(window);
    if (currentContribution.equals(toContribution)) {
      return components.get(window);
    }

    closeWindow(window);
    /*
 
View Full Code Here

Examples of org.jboss.dna.connector.federation.contribution.Contribution

                       ExecutionContext context ) {
        assert federatedNode != null;
        assert context != null;
        assert contributions != null;
        assert contributions.size() > 0;
        Contribution contribution = contributions.get(0);
        assert contribution != null;
        final boolean findUuid = isContributionUuidUsedForFederatedNode();
        // Copy the children ...
        List<Segment> children = federatedNode.getChildren();
        children.clear();
        Iterator<Segment> childIterator = contribution.getChildren();
        while (childIterator.hasNext()) {
            Segment child = childIterator.next();
            children.add(child);
        }
        // Copy the properties ...
        Map<Name, Property> properties = federatedNode.getPropertiesByName();
        properties.clear();
        UUID uuid = null;
        UuidFactory uuidFactory = null;
        Iterator<Property> propertyIterator = contribution.getProperties();
        while (propertyIterator.hasNext()) {
            Property property = propertyIterator.next();
            if (findUuid && uuid == null && property.getName().getLocalName().equals("uuid")) {
                if (property.isSingle()) {
                    if (uuidFactory == null) uuidFactory = context.getValueFactories().getUuidFactory();
View Full Code Here

Examples of org.spw.model.Contribution

        return (RequestBean1)getBean("RequestBean1");
    }

    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);
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.