From 819a77513852144dd60117dbf3e40cb9f110c23c Mon Sep 17 00:00:00 2001 From: antelder Date: Fri, 23 Apr 2010 11:09:39 +0000 Subject: Update to embedded helloworld sample contribution git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@937250 13f79535-47bb-0310-9956-ffa450edef68 --- .../trunk/samples/webapps/helloworld/pom.xml | 26 +++++++++++++++ .../src/main/java/sample/HelloworldService.java | 25 -------------- .../main/java/sample/HelloworldServiceImpl.java | 38 ---------------------- .../src/main/webapp/WEB-INF/web.composite | 29 ----------------- .../helloworld/src/main/webapp/WEB-INF/web.xml | 10 ++++++ 5 files changed, 36 insertions(+), 92 deletions(-) delete mode 100644 sca-java-2.x/trunk/samples/webapps/helloworld/src/main/java/sample/HelloworldService.java delete mode 100644 sca-java-2.x/trunk/samples/webapps/helloworld/src/main/java/sample/HelloworldServiceImpl.java delete mode 100644 sca-java-2.x/trunk/samples/webapps/helloworld/src/main/webapp/WEB-INF/web.composite (limited to 'sca-java-2.x/trunk/samples/webapps') diff --git a/sca-java-2.x/trunk/samples/webapps/helloworld/pom.xml b/sca-java-2.x/trunk/samples/webapps/helloworld/pom.xml index 9c8c28cf64..d43e0a949a 100644 --- a/sca-java-2.x/trunk/samples/webapps/helloworld/pom.xml +++ b/sca-java-2.x/trunk/samples/webapps/helloworld/pom.xml @@ -43,6 +43,32 @@ helloworld + + + org.apache.maven.plugins + maven-dependency-plugin + + + copy + compile + + copy + + + + + org.apache.tuscany.sca + sample-helloworld + ${pom.version} + + src/main/webapp/embeddedContributions + + + + + + + org.mortbay.jetty maven-jetty-plugin diff --git a/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/java/sample/HelloworldService.java b/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/java/sample/HelloworldService.java deleted file mode 100644 index 53ff7a5ca1..0000000000 --- a/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/java/sample/HelloworldService.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * 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 sample; - -public interface HelloworldService { - - String sayHello(String name); - -} diff --git a/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/java/sample/HelloworldServiceImpl.java b/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/java/sample/HelloworldServiceImpl.java deleted file mode 100644 index 8d220029a5..0000000000 --- a/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/java/sample/HelloworldServiceImpl.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - * 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 sample; - -import org.oasisopen.sca.annotation.EagerInit; -import org.oasisopen.sca.annotation.Init; -import org.oasisopen.sca.annotation.Scope; - -@EagerInit -@Scope("COMPOSITE") -public class HelloworldServiceImpl implements HelloworldService { - - public String sayHello(String name) { - return "Hello " + name; - } - - @Init - public void init() { - System.out.println(sayHello("world")); - } - -} diff --git a/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/webapp/WEB-INF/web.composite b/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/webapp/WEB-INF/web.composite deleted file mode 100644 index 8e9976daf8..0000000000 --- a/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/webapp/WEB-INF/web.composite +++ /dev/null @@ -1,29 +0,0 @@ - - - - - - - - - diff --git a/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/webapp/WEB-INF/web.xml b/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/webapp/WEB-INF/web.xml index d7b237641c..5b1b8e6ebb 100644 --- a/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/webapp/WEB-INF/web.xml +++ b/sca-java-2.x/trunk/samples/webapps/helloworld/src/main/webapp/WEB-INF/web.xml @@ -24,6 +24,16 @@ Apache Tuscany Helloworld Sample + + contributions + /embeddedContributions + + + + contributions + /embeddedContributions + + tuscany org.apache.tuscany.sca.host.webapp.TuscanyServletFilter -- cgit v1.2.3