From 7539d062e07745ac0bc3d411d64f7d28637fdf22 Mon Sep 17 00:00:00 2001 From: nash Date: Tue, 15 Sep 2009 16:12:30 +0000 Subject: Apply new naming conventions to contributions/databinding-client and launchers/databinding git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@815382 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/main/java/scatours/client/TestClient.java | 42 ++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 sandbox/travelsample/contributions/databinding-client/src/main/java/scatours/client/TestClient.java (limited to 'sandbox/travelsample/contributions/databinding-client/src/main/java') diff --git a/sandbox/travelsample/contributions/databinding-client/src/main/java/scatours/client/TestClient.java b/sandbox/travelsample/contributions/databinding-client/src/main/java/scatours/client/TestClient.java new file mode 100644 index 0000000000..8f69ce9d5f --- /dev/null +++ b/sandbox/travelsample/contributions/databinding-client/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 com.tuscanyscatours.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)); + } +} -- cgit v1.2.3