diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-26 04:25:11 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-26 04:25:11 +0000 |
commit | 313e83d4f0dc58220e31c035e5350beb19139522 (patch) | |
tree | 2e791782f071381bf2108570dacc90bfab9b5ef2 /branches/sca-java-1.x/samples/store-secure/src/main/java/services/CurrencyConverter.java | |
parent | 176f6afc0662e66b14e56e7569da47ff3efa843f (diff) |
Adding new store-secure sample to exercise security policy in web 2.0 extensions
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@748005 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.x/samples/store-secure/src/main/java/services/CurrencyConverter.java')
-rw-r--r-- | branches/sca-java-1.x/samples/store-secure/src/main/java/services/CurrencyConverter.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/branches/sca-java-1.x/samples/store-secure/src/main/java/services/CurrencyConverter.java b/branches/sca-java-1.x/samples/store-secure/src/main/java/services/CurrencyConverter.java new file mode 100644 index 0000000000..e104a0423a --- /dev/null +++ b/branches/sca-java-1.x/samples/store-secure/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); +} |