From f3d9db008824a492d1cd6e66df504c201eff5da7 Mon Sep 17 00:00:00 2001 From: slaws Date: Sun, 24 May 2009 16:30:02 +0000 Subject: Databinding client component used to show how JAXB Payment component can talk to SDO creditcard payment component git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@778188 13f79535-47bb-0310-9956-ffa450edef68 --- .../databinding-client-contribution/build.xml | 45 ++++++++++++++++++++ .../databinding-client-contribution/pom.xml | 48 ++++++++++++++++++++++ .../src/main/java/scatours/client/TestClient.java | 42 +++++++++++++++++++ .../main/resources/META-INF/sca-contribution.xml | 26 ++++++++++++ .../src/main/resources/client.composite | 28 +++++++++++++ 5 files changed, 189 insertions(+) create mode 100644 sandbox/travelsample/contributions/databinding-client-contribution/build.xml create mode 100644 sandbox/travelsample/contributions/databinding-client-contribution/pom.xml create mode 100644 sandbox/travelsample/contributions/databinding-client-contribution/src/main/java/scatours/client/TestClient.java create mode 100644 sandbox/travelsample/contributions/databinding-client-contribution/src/main/resources/META-INF/sca-contribution.xml create mode 100644 sandbox/travelsample/contributions/databinding-client-contribution/src/main/resources/client.composite (limited to 'sandbox') diff --git a/sandbox/travelsample/contributions/databinding-client-contribution/build.xml b/sandbox/travelsample/contributions/databinding-client-contribution/build.xml new file mode 100644 index 0000000000..52b3087827 --- /dev/null +++ b/sandbox/travelsample/contributions/databinding-client-contribution/build.xml @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sandbox/travelsample/contributions/databinding-client-contribution/pom.xml b/sandbox/travelsample/contributions/databinding-client-contribution/pom.xml new file mode 100644 index 0000000000..3654fcc7bc --- /dev/null +++ b/sandbox/travelsample/contributions/databinding-client-contribution/pom.xml @@ -0,0 +1,48 @@ + + + + 4.0.0 + + org.apache.tuscany.sca + tuscany-sca + 1.5-SNAPSHOT + + + scatours-databinding-client-contribution + Apache Tuscany SCA Tours Databinding Client Contribution + + + + org.apache.tuscany.sca + tuscany-sca-api + 1.5-SNAPSHOT + + + + org.apache.tuscany.sca + scatours-payment-java-contribution + 1.5-SNAPSHOT + + + + + ${artifactId} + + diff --git a/sandbox/travelsample/contributions/databinding-client-contribution/src/main/java/scatours/client/TestClient.java b/sandbox/travelsample/contributions/databinding-client-contribution/src/main/java/scatours/client/TestClient.java new file mode 100644 index 0000000000..1595eb4a01 --- /dev/null +++ b/sandbox/travelsample/contributions/databinding-client-contribution/src/main/java/scatours/client/TestClient.java @@ -0,0 +1,42 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributor license agreements. See the NOTICE file + * distributed with this work for additional information + * regarding copyright ownership. The ASF licenses this file + * to you under the Apache License, Version 2.0 (the + * "License"); you may not use this file except in compliance + * with the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY + * KIND, either express or implied. See the License for the + * specific language governing permissions and limitations + * under the License. + */ + +package scatours.client; + +import java.math.BigDecimal; + +import org.osoa.sca.annotations.Reference; +import org.osoa.sca.annotations.Service; + +import payment.Payment; + +@Service(Runnable.class) +public class TestClient { + @Reference + protected Payment payment; + + public TestClient() { + } + + public void run() { + System.out.println("Call Payment component"); + System.out.println(payment.makePaymentMember("c-0", 100.00f)); + System.out.println(payment.makePaymentMember("c-1", 100.00f)); + } +} diff --git a/sandbox/travelsample/contributions/databinding-client-contribution/src/main/resources/META-INF/sca-contribution.xml b/sandbox/travelsample/contributions/databinding-client-contribution/src/main/resources/META-INF/sca-contribution.xml new file mode 100644 index 0000000000..e90a37cae2 --- /dev/null +++ b/sandbox/travelsample/contributions/databinding-client-contribution/src/main/resources/META-INF/sca-contribution.xml @@ -0,0 +1,26 @@ + + + + + + + + diff --git a/sandbox/travelsample/contributions/databinding-client-contribution/src/main/resources/client.composite b/sandbox/travelsample/contributions/databinding-client-contribution/src/main/resources/client.composite new file mode 100644 index 0000000000..83320d2ac1 --- /dev/null +++ b/sandbox/travelsample/contributions/databinding-client-contribution/src/main/resources/client.composite @@ -0,0 +1,28 @@ + + + + + + + + + -- cgit v1.2.3