summaryrefslogtreecommitdiffstats
path: root/java/sca/samples/calculator-corba-reference/src/main/java/calculator/CalculatorService.java
diff options
context:
space:
mode:
authorwjaniszewski <wjaniszewski@13f79535-47bb-0310-9956-ffa450edef68>2008-10-15 21:48:14 +0000
committerwjaniszewski <wjaniszewski@13f79535-47bb-0310-9956-ffa450edef68>2008-10-15 21:48:14 +0000
commitc83638706494a525723324d7c6415e581b296dc9 (patch)
treed01749666e3628167c32c04585b604175802653a /java/sca/samples/calculator-corba-reference/src/main/java/calculator/CalculatorService.java
parent1d9c2f3c19d1d7af1408baa0b761e3cd367331f4 (diff)
Reference CORBA binding calculator sample
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@705066 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--java/sca/samples/calculator-corba-reference/src/main/java/calculator/CalculatorService.java39
1 files changed, 39 insertions, 0 deletions
diff --git a/java/sca/samples/calculator-corba-reference/src/main/java/calculator/CalculatorService.java b/java/sca/samples/calculator-corba-reference/src/main/java/calculator/CalculatorService.java
new file mode 100644
index 0000000000..d310dad4b1
--- /dev/null
+++ b/java/sca/samples/calculator-corba-reference/src/main/java/calculator/CalculatorService.java
@@ -0,0 +1,39 @@
+/*
+ * 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 calculator;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+import org.osoa.sca.annotations.Remotable;
+
+/**
+ * The Calculator service interface.
+ */
+@Remotable
+public interface CalculatorService extends Remote {
+
+ double add(double n1, double n2) throws RemoteException;
+
+ double subtract(double n1, double n2) throws RemoteException;
+
+ double multiply(double n1, double n2) throws RemoteException;
+
+ double divide(double n1, double n2) throws RemoteException;
+}