diff options
author | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-15 16:12:30 +0000 |
---|---|---|
committer | nash <nash@13f79535-47bb-0310-9956-ffa450edef68> | 2009-09-15 16:12:30 +0000 |
commit | 7539d062e07745ac0bc3d411d64f7d28637fdf22 (patch) | |
tree | b61b15bba1266c5c72c064aac7441e67d0e703e5 /sandbox/travelsample/contributions/databinding-client/src/main/java/scatours/client/TestClient.java | |
parent | bc398b011124c0aec5826fcf8a25d0f084bb7c5f (diff) |
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
Diffstat (limited to 'sandbox/travelsample/contributions/databinding-client/src/main/java/scatours/client/TestClient.java')
-rw-r--r-- | sandbox/travelsample/contributions/databinding-client/src/main/java/scatours/client/TestClient.java | 42 |
1 files changed, 42 insertions, 0 deletions
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)); + } +} |