summaryrefslogtreecommitdiffstats
path: root/sandbox/kgoodson/testroot/proj2
diff options
context:
space:
mode:
Diffstat (limited to 'sandbox/kgoodson/testroot/proj2')
-rw-r--r--sandbox/kgoodson/testroot/proj2/pom.xml109
-rw-r--r--sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldImpl.java36
-rw-r--r--sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldService.java28
-rw-r--r--sandbox/kgoodson/testroot/proj2/src/main/java/d/Dee.java5
-rw-r--r--sandbox/kgoodson/testroot/proj2/src/main/java/y/Whyfor.java5
-rw-r--r--sandbox/kgoodson/testroot/proj2/src/main/java/z/Zee.java5
-rw-r--r--sandbox/kgoodson/testroot/proj2/src/main/resources/META-INF/sca-contribution.xml23
-rw-r--r--sandbox/kgoodson/testroot/proj2/src/main/resources/helloworld.composite29
8 files changed, 240 insertions, 0 deletions
diff --git a/sandbox/kgoodson/testroot/proj2/pom.xml b/sandbox/kgoodson/testroot/proj2/pom.xml
new file mode 100644
index 0000000000..867cc9bf58
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj2/pom.xml
@@ -0,0 +1,109 @@
+<?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 xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <artifactId>testroot</artifactId>
+ <groupId>org.apache.tuscany</groupId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <groupId>org.apache.tuscany</groupId>
+ <artifactId>proj2</artifactId>
+ <packaging>jar</packaging>
+ <version>1.0-SNAPSHOT</version>
+ <!-- TODO project name -->
+ <name>quickstart</name>
+
+ <dependencies>
+ <!-- TUSCANY DEPENDENCIES -->
+ <dependency>
+ <groupId>org.apache.tuscany.sca</groupId>
+ <artifactId>tuscany-sca-api</artifactId>
+ <version>${tuscany.version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <!-- JUNIT DEPENDENCY FOR TESTING -->
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.8.1</version>
+ <scope>test</scope>
+ </dependency>
+
+ </dependencies>
+ <build>
+ <defaultGoal>install</defaultGoal>
+ <finalName>${artifactId}</finalName>
+ <resources>
+ <resource>
+ <directory>src/main/resources</directory>
+ </resource>
+ <resource>
+ <directory>src/main/java</directory>
+ <includes>
+ <include>**</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </resource>
+ </resources>
+ <testResources>
+ <testResource>
+ <directory>src/test/java</directory>
+ <includes>
+ <include>**</include>
+ </includes>
+ <excludes>
+ <exclude>**/*.java</exclude>
+ </excludes>
+ </testResource>
+ </testResources>
+ <plugins>
+ <plugin>
+ <inherited>true</inherited>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ <optimise>true</optimise>
+ <debug>true</debug>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-eclipse-plugin</artifactId>
+ <configuration>
+ <downloadSources>true</downloadSources>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.tuscany.maven.plugins</groupId>
+ <artifactId>maven-tuscany-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+ <properties>
+ <tuscany.version>2.0-SNAPSHOT</tuscany.version>
+ </properties>
+ </project>
diff --git a/sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldImpl.java b/sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldImpl.java
new file mode 100644
index 0000000000..9c5d9e170a
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj2/src/main/java/c/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 c;
+
+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/proj2/src/main/java/c/HelloworldService.java b/sandbox/kgoodson/testroot/proj2/src/main/java/c/HelloworldService.java
new file mode 100644
index 0000000000..c32f9448f6
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj2/src/main/java/c/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 c;
+
+import org.oasisopen.sca.annotation.Remotable;
+
+@Remotable
+public interface HelloworldService {
+
+ String sayHello(String name);
+
+}
diff --git a/sandbox/kgoodson/testroot/proj2/src/main/java/d/Dee.java b/sandbox/kgoodson/testroot/proj2/src/main/java/d/Dee.java
new file mode 100644
index 0000000000..639acefea0
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj2/src/main/java/d/Dee.java
@@ -0,0 +1,5 @@
+package d;
+
+public class Dee {
+
+}
diff --git a/sandbox/kgoodson/testroot/proj2/src/main/java/y/Whyfor.java b/sandbox/kgoodson/testroot/proj2/src/main/java/y/Whyfor.java
new file mode 100644
index 0000000000..299abaa85a
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj2/src/main/java/y/Whyfor.java
@@ -0,0 +1,5 @@
+package y;
+
+public class Whyfor {
+
+}
diff --git a/sandbox/kgoodson/testroot/proj2/src/main/java/z/Zee.java b/sandbox/kgoodson/testroot/proj2/src/main/java/z/Zee.java
new file mode 100644
index 0000000000..adc3a6a7af
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj2/src/main/java/z/Zee.java
@@ -0,0 +1,5 @@
+package z;
+
+public class Zee {
+
+}
diff --git a/sandbox/kgoodson/testroot/proj2/src/main/resources/META-INF/sca-contribution.xml b/sandbox/kgoodson/testroot/proj2/src/main/resources/META-INF/sca-contribution.xml
new file mode 100644
index 0000000000..58bd71cf8b
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj2/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:proj2"/>
+</contribution>
diff --git a/sandbox/kgoodson/testroot/proj2/src/main/resources/helloworld.composite b/sandbox/kgoodson/testroot/proj2/src/main/resources/helloworld.composite
new file mode 100644
index 0000000000..c04f571c6a
--- /dev/null
+++ b/sandbox/kgoodson/testroot/proj2/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="proj2">
+
+ <component name="HelloworldComponent">
+ <implementation.java class="org.apache.tuscany.HelloworldImpl"/>
+ </component>
+
+</composite>