summaryrefslogtreecommitdiffstats
path: root/sandbox/slaws/bank-challenge/common-contribution
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sandbox/slaws/bank-challenge/common-contribution/pom.xml86
-rw-r--r--sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/BankService.java (renamed from sandbox/slaws/bank-challenge/bank-contribution/src/main/java/bank/BankService.java)0
-rw-r--r--sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/ChallengeControl.java32
-rw-r--r--sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/Statement.java (renamed from sandbox/slaws/bank-challenge/bank-contribution/src/main/java/bank/Statement.java)0
-rw-r--r--sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/StockHolding.java (renamed from sandbox/slaws/bank-challenge/bank-contribution/src/main/java/bank/StockHolding.java)0
-rw-r--r--sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/StockQuote.java (renamed from sandbox/slaws/bank-challenge/bank-contribution/src/main/java/bank/StockQuote.java)0
-rw-r--r--sandbox/slaws/bank-challenge/common-contribution/src/main/resources/META-INF/sca-contribution.xml23
7 files changed, 141 insertions, 0 deletions
diff --git a/sandbox/slaws/bank-challenge/common-contribution/pom.xml b/sandbox/slaws/bank-challenge/common-contribution/pom.xml
new file mode 100644
index 0000000000..8c8f8b9704
--- /dev/null
+++ b/sandbox/slaws/bank-challenge/common-contribution/pom.xml
@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-sca</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <relativePath>../../pom.xml</relativePath>
+ </parent>
+ <artifactId>sandbox-common-contribution</artifactId>
+ <name>Apache Tuscany SCA Sandbox Common Contribution</name>
+ <packaging>jar</packaging>
+
+ <dependencies>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-sca-api</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-api</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-node-impl</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-implementation-java-runtime</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-binding-ws-runtime-axis2</artifactId>
+ <version>2.0-SNAPSHOT</version>
+ <scope>runtime</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.axis2</groupId>
+ <artifactId>axis2-webapp</artifactId>
+ <version>1.5.1</version>
+ <type>war</type>
+ </dependency>
+
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.1</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+
+ <build>
+ <finalName>${artifactId}</finalName>
+ </build>
+</project>
diff --git a/sandbox/slaws/bank-challenge/bank-contribution/src/main/java/bank/BankService.java b/sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/BankService.java
index bc13dfd21d..bc13dfd21d 100644
--- a/sandbox/slaws/bank-challenge/bank-contribution/src/main/java/bank/BankService.java
+++ b/sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/BankService.java
diff --git a/sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/ChallengeControl.java b/sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/ChallengeControl.java
new file mode 100644
index 0000000000..c03f9a2c9c
--- /dev/null
+++ b/sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/ChallengeControl.java
@@ -0,0 +1,32 @@
+/*
+ * 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 bank;
+
+import org.oasisopen.sca.annotation.Remotable;
+
+/**
+ * The Bank service interface.
+ */
+@Remotable
+public interface ChallengeControl {
+
+ void start();
+ void increment();
+ void stop();
+}
diff --git a/sandbox/slaws/bank-challenge/bank-contribution/src/main/java/bank/Statement.java b/sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/Statement.java
index 97439736e1..97439736e1 100644
--- a/sandbox/slaws/bank-challenge/bank-contribution/src/main/java/bank/Statement.java
+++ b/sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/Statement.java
diff --git a/sandbox/slaws/bank-challenge/bank-contribution/src/main/java/bank/StockHolding.java b/sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/StockHolding.java
index 8bd0afd2be..8bd0afd2be 100644
--- a/sandbox/slaws/bank-challenge/bank-contribution/src/main/java/bank/StockHolding.java
+++ b/sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/StockHolding.java
diff --git a/sandbox/slaws/bank-challenge/bank-contribution/src/main/java/bank/StockQuote.java b/sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/StockQuote.java
index 3bec8019b7..3bec8019b7 100644
--- a/sandbox/slaws/bank-challenge/bank-contribution/src/main/java/bank/StockQuote.java
+++ b/sandbox/slaws/bank-challenge/common-contribution/src/main/java/bank/StockQuote.java
diff --git a/sandbox/slaws/bank-challenge/common-contribution/src/main/resources/META-INF/sca-contribution.xml b/sandbox/slaws/bank-challenge/common-contribution/src/main/resources/META-INF/sca-contribution.xml
new file mode 100644
index 0000000000..d96d586130
--- /dev/null
+++ b/sandbox/slaws/bank-challenge/common-contribution/src/main/resources/META-INF/sca-contribution.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * 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.
+-->
+<contribution xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+ xmlns:sample="http://banking-challenge">
+ <export.java package="bank"/>
+</contribution> \ No newline at end of file