You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by an...@apache.org on 2006/10/14 11:14:17 UTC
svn commit: r463902 - in
/incubator/tuscany/java/samples/sca/helloworldjsonrpc: ./
src/main/java/helloworldjsonrpc/ src/main/java/org/
src/main/webapp/META-INF/ src/main/webapp/WEB-INF/
Author: antelder
Date: Sat Oct 14 02:14:14 2006
New Revision: 463902
URL: http://svn.apache.org/viewvc?view=rev&rev=463902
Log:
Clean up the sample
Added:
incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/java/helloworldjsonrpc/
incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/java/helloworldjsonrpc/HelloWorldService.java
incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/java/helloworldjsonrpc/HelloWorldServiceImpl.java
Removed:
incubator/tuscany/java/samples/sca/helloworldjsonrpc/README.txt
incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/java/org/
incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/META-INF/README.txt
Modified:
incubator/tuscany/java/samples/sca/helloworldjsonrpc/pom.xml
incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/default.scdl
incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml
Modified: incubator/tuscany/java/samples/sca/helloworldjsonrpc/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldjsonrpc/pom.xml?view=diff&rev=463902&r1=463901&r2=463902
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldjsonrpc/pom.xml (original)
+++ incubator/tuscany/java/samples/sca/helloworldjsonrpc/pom.xml Sat Oct 14 02:14:14 2006
@@ -56,6 +56,7 @@
</execution>
</executions>
<configuration>
+ <loadExtensionDependencies>true</loadExtensionDependencies>
<extensions>
<dependency>
<groupId>org.apache.tuscany.sca.services.bindings</groupId>
Added: incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/java/helloworldjsonrpc/HelloWorldService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/java/helloworldjsonrpc/HelloWorldService.java?view=auto&rev=463902
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/java/helloworldjsonrpc/HelloWorldService.java (added)
+++ incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/java/helloworldjsonrpc/HelloWorldService.java Sat Oct 14 02:14:14 2006
@@ -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 helloworldjsonrpc;
+
+/**
+ * This is the business interface of the HelloWorld service component.
+ */
+public interface HelloWorldService {
+
+ String getGreetings(String name);
+
+}
Added: incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/java/helloworldjsonrpc/HelloWorldServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/java/helloworldjsonrpc/HelloWorldServiceImpl.java?view=auto&rev=463902
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/java/helloworldjsonrpc/HelloWorldServiceImpl.java (added)
+++ incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/java/helloworldjsonrpc/HelloWorldServiceImpl.java Sat Oct 14 02:14:14 2006
@@ -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 helloworldjsonrpc;
+
+import org.osoa.sca.annotations.Service;
+
+/**
+ * This class implements the HelloWorld service component.
+ */
+@Service(HelloWorldService.class)
+public class HelloWorldServiceImpl implements HelloWorldService {
+
+ /*
+ * @see org.apache.tuscany.samples.helloworld.HelloWorldServiceComponent#getGreetings()
+ */
+ public String getGreetings(String name) {
+ return "jsonrpcHello " + name;
+ }
+
+}
Modified: incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/default.scdl?view=diff&rev=463902&r1=463901&r2=463902
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/default.scdl (original)
+++ incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/default.scdl Sat Oct 14 02:14:14 2006
@@ -19,14 +19,14 @@
-->
<composite xmlns="http://www.osoa.org/xmlns/sca/1.0" name="helloworldjsonrpc">
- <service name="HelloWorldJSONService" target="http:///foo">
- <interface.java interface="org.apache.tuscany.samples.helloworldjsonrpc.HelloWorldService"/>
+ <service name="HelloWorldJSONService">
+ <interface.java interface="helloworldjsonrpc.HelloWorldService"/>
<binding.jsonrpc/>
<reference>HelloWorldServiceComponent</reference>
</service>
<component name="HelloWorldServiceComponent">
- <implementation.java class="org.apache.tuscany.samples.helloworldjsonrpc.HelloWorldServiceComponentImpl"/>
+ <implementation.java class="helloworldjsonrpc.HelloWorldServiceImpl"/>
</component>
</composite>
Modified: incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml?view=diff&rev=463902&r1=463901&r2=463902
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml (original)
+++ incubator/tuscany/java/samples/sca/helloworldjsonrpc/src/main/webapp/WEB-INF/web.xml Sat Oct 14 02:14:14 2006
@@ -31,15 +31,15 @@
<listener-class>org.apache.tuscany.runtime.webapp.TuscanyContextListener</listener-class>
</listener>
- <servlet>
- <servlet-name>TuscanyServlet</servlet-name>
- <display-name>Tuscany Servlet</display-name>
- <servlet-class>org.apache.tuscany.runtime.webapp.TuscanyServlet</servlet-class>
- </servlet>
+ <servlet>
+ <servlet-name>TuscanyServlet</servlet-name>
+ <display-name>Tuscany Servlet</display-name>
+ <servlet-class>org.apache.tuscany.runtime.webapp.TuscanyServlet</servlet-class>
+ </servlet>
- <servlet-mapping>
- <servlet-name>TuscanyServlet</servlet-name>
- <url-pattern>/services/*</url-pattern>
- </servlet-mapping>
+ <servlet-mapping>
+ <servlet-name>TuscanyServlet</servlet-name>
+ <url-pattern>/services/*</url-pattern>
+ </servlet-mapping>
</web-app>
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org