summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/store-webapp/src/main/java/services/CurrencyConverter.java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-16 23:20:19 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2009-11-16 23:20:19 +0000
commit854248d8c6516f04766e95cc6a64272b45215be5 (patch)
tree28a4ba6b080f4372c1a991cc24387e2f526a3f41 /java/sca/samples/store-webapp/src/main/java/services/CurrencyConverter.java
parent7f1583e1daad5532c7c91efb43c817e135ab59ed (diff)
Copying store webapp from 1.x
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@881043 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/samples/store-webapp/src/main/java/services/CurrencyConverter.java')
-rw-r--r--java/sca/samples/store-webapp/src/main/java/services/CurrencyConverter.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/java/sca/samples/store-webapp/src/main/java/services/CurrencyConverter.java b/java/sca/samples/store-webapp/src/main/java/services/CurrencyConverter.java
new file mode 100644
index 0000000000..e104a0423a
--- /dev/null
+++ b/java/sca/samples/store-webapp/src/main/java/services/CurrencyConverter.java
@@ -0,0 +1,29 @@
+/*
+ * 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 services;
+
+import org.osoa.sca.annotations.Remotable;
+
+@Remotable
+public interface CurrencyConverter {
+ public double getConversion(String fromCurrenycCode, String toCurrencyCode, double amount);
+
+ public String getCurrencySymbol(String currencyCode);
+}