summaryrefslogtreecommitdiffstats
path: root/sandbox/kgoodson/testroot/proj1/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/kgoodson/testroot/proj1/src/main')
-rw-r--r--sandbox/kgoodson/testroot/proj1/src/main/java/a/Hay.java5
-rw-r--r--sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldImpl.java36
-rw-r--r--sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldService.java28
-rw-r--r--sandbox/kgoodson/testroot/proj1/src/main/java/b/Bee.java5
-rw-r--r--sandbox/kgoodson/testroot/proj1/src/main/java/x/Exx.java5
-rw-r--r--sandbox/kgoodson/testroot/proj1/src/main/resources/META-INF/sca-contribution.xml23
-rw-r--r--sandbox/kgoodson/testroot/proj1/src/main/resources/helloworld.composite29
7 files changed, 131 insertions, 0 deletions
diff --git a/sandbox/kgoodson/testroot/proj1/src/main/java/a/Hay.java b/sandbox/kgoodson/testroot/proj1/src/main/java/a/Hay.java
new file mode 100644
index 0000000000..8d41364730
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj1/src/main/java/a/Hay.java
@@ -0,0 +1,5 @@
+package a;
+
+public class Hay {
+
+}
diff --git a/sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldImpl.java b/sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldImpl.java
new file mode 100644
index 0000000000..babdbd648d
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldImpl.java
@@ -0,0 +1,36 @@
+/*
+ * 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 a;
+
+import org.oasisopen.sca.annotation.Init;
+import org.oasisopen.sca.annotation.Scope;
+import org.oasisopen.sca.annotation.EagerInit;
+
+@Scope("COMPOSITE") @EagerInit
+public class HelloworldImpl implements HelloworldService {
+
+ public String sayHello(String name) {
+ return "Hello " + name;
+ }
+
+ @Init
+ public void init() {
+ System.out.println(sayHello("world"));
+ }
+}
diff --git a/sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldService.java b/sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldService.java
new file mode 100644
index 0000000000..5d97d722c4
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj1/src/main/java/a/HelloworldService.java
@@ -0,0 +1,28 @@
+/*
+ * 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 a;
+
+import org.oasisopen.sca.annotation.Remotable;
+
+@Remotable
+public interface HelloworldService {
+
+ String sayHello(String name);
+
+}
diff --git a/sandbox/kgoodson/testroot/proj1/src/main/java/b/Bee.java b/sandbox/kgoodson/testroot/proj1/src/main/java/b/Bee.java
new file mode 100644
index 0000000000..7bbd651d3a
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj1/src/main/java/b/Bee.java
@@ -0,0 +1,5 @@
+package b;
+
+public class Bee {
+
+}
diff --git a/sandbox/kgoodson/testroot/proj1/src/main/java/x/Exx.java b/sandbox/kgoodson/testroot/proj1/src/main/java/x/Exx.java
new file mode 100644
index 0000000000..5ac143b3a6
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj1/src/main/java/x/Exx.java
@@ -0,0 +1,5 @@
+package x;
+
+public class Exx {
+
+}
diff --git a/sandbox/kgoodson/testroot/proj1/src/main/resources/META-INF/sca-contribution.xml b/sandbox/kgoodson/testroot/proj1/src/main/resources/META-INF/sca-contribution.xml
new file mode 100644
index 0000000000..c7c869d81e
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj1/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://org.apache.tuscany">
+ <deployable composite="sample:proj1"/>
+</contribution>
diff --git a/sandbox/kgoodson/testroot/proj1/src/main/resources/helloworld.composite b/sandbox/kgoodson/testroot/proj1/src/main/resources/helloworld.composite
new file mode 100644
index 0000000000..8b8d542382
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj1/src/main/resources/helloworld.composite
@@ -0,0 +1,29 @@
+<?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.
+-->
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912"
+ xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1"
+ targetNamespace="http://org.apache.tuscany"
+ name="proj1">
+
+ <component name="HelloworldComponent">
+ <implementation.java class="org.apache.tuscany.HelloworldImpl"/>
+ </component>
+
+</composite>