You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tuscany.apache.org by jb...@apache.org on 2006/08/12 00:56:56 UTC
svn commit: r430912 [6/17] - in /incubator/tuscany/java: samples/sca/
samples/sca/bigbank/src/main/resources/META-INF/
samples/sca/bigbank/src/main/resources/META-INF/sca/
samples/sca/calculator/src/main/resources/META-INF/
samples/sca/calculator/src/m...
Propchange: incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/LICENSE.txt
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/NOTICE
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/NOTICE?rev=430912&r1=430911&r2=430912&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/NOTICE (original)
+++ incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/NOTICE Fri Aug 11 15:56:46 2006
@@ -1,18 +1,18 @@
-=========================================================================
-== NOTICE file corresponding to the section 4 d of ==
-== the Apache License, Version 2.0, ==
-== in this case for the Apache Tuscany distribution. ==
-=========================================================================
-
-This product includes software developed by the Apache Software Foundation
-(http://www.apache.org/).
-
-This product also includes software developed by:
-- the Eclipse Modeling Framework project (http://www.eclipse.org/emf/)
-- the Celtix project (http://celtix.objectweb.org/)
-- the Mozilla Rhino project (http://www.mozilla.org/rhino/)
-- the GlassFish JAX-WS project (https://jax-ws.dev.java.net/)
-
-Please read the LICENSE.txt file present in the root directory of this
-distribution.
-
+=========================================================================
+== NOTICE file corresponding to the section 4 d of ==
+== the Apache License, Version 2.0, ==
+== in this case for the Apache Tuscany distribution. ==
+=========================================================================
+
+This product includes software developed by the Apache Software Foundation
+(http://www.apache.org/).
+
+This product also includes software developed by:
+- the Eclipse Modeling Framework project (http://www.eclipse.org/emf/)
+- the Celtix project (http://celtix.objectweb.org/)
+- the Mozilla Rhino project (http://www.mozilla.org/rhino/)
+- the GlassFish JAX-WS project (https://jax-ws.dev.java.net/)
+
+Please read the LICENSE.txt file present in the root directory of this
+distribution.
+
Propchange: incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/NOTICE
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/sca/default.scdl
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/sca/default.scdl?rev=430912&r1=430911&r2=430912&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/sca/default.scdl (original)
+++ incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/sca/default.scdl Fri Aug 11 15:56:46 2006
@@ -1,31 +1,31 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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://www.osoa.org/xmlns/sca/1.0"
- xmlns:rmi="http://tuscany.apache.org/xmlns/binding/rmi/1.0-SNAPSHOT"
- name="HelloWorldRmiComposite">
-
- <service name="HelloWorldRmiService" target="HelloWorldServiceComponent">
- <interface.java interface="helloworld.HelloWorldService"/>
- <rmi:binding.rmi uri="HelloWorldRmiService" />
- <reference>HelloWorldServiceComponent</reference>
- </service>
-
- <component name="HelloWorldServiceComponent">
- <implementation.java class="helloworld.HelloWorldImpl"/>
- </component>
-
-</composite>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright (c) 2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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://www.osoa.org/xmlns/sca/1.0"
+ xmlns:rmi="http://tuscany.apache.org/xmlns/binding/rmi/1.0-SNAPSHOT"
+ name="HelloWorldRmiComposite">
+
+ <service name="HelloWorldRmiService" target="HelloWorldServiceComponent">
+ <interface.java interface="helloworld.HelloWorldService"/>
+ <rmi:binding.rmi uri="HelloWorldRmiService" />
+ <reference>HelloWorldServiceComponent</reference>
+ </service>
+
+ <component name="HelloWorldServiceComponent">
+ <implementation.java class="helloworld.HelloWorldImpl"/>
+ </component>
+
+</composite>
Propchange: incubator/tuscany/java/samples/sca/helloworld.rmiService/src/main/resources/META-INF/sca/default.scdl
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/tuscany/java/samples/sca/helloworld.rmiService/src/test/java/helloworld/HelloWorldTestCase.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworld.rmiService/src/test/java/helloworld/HelloWorldTestCase.java?rev=430912&r1=430911&r2=430912&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworld.rmiService/src/test/java/helloworld/HelloWorldTestCase.java (original)
+++ incubator/tuscany/java/samples/sca/helloworld.rmiService/src/test/java/helloworld/HelloWorldTestCase.java Fri Aug 11 15:56:46 2006
@@ -1,46 +1,46 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import org.apache.tuscany.test.SCATestCase;
-
-/**
- * This shows how to test the HelloWorld service component.
- */
-public class HelloWorldTestCase extends SCATestCase {
-
- protected void setUp() throws Exception {
- //Enumeration<URL> scdls = getClass().getClassLoader().getResources("META-INF/sca/extension.scdl");
- //addExtension("JavaRMIBinding", scdls.nextElement());
- addExtension("rmi.binding", getClass().getClassLoader().getResource("META-INF/sca/rmi_extension.scdl"));
- super.setUp();
- System.out.println("Hit ENTER to exit");
- System.in.read();
- System.out.println("Server Stopped!");
- }
-
- protected void tearDown() throws Exception {
- super.tearDown();
- }
-
- public void testHelloWorld() throws Exception
- {
- //nothing to test
- }
-
-
-}
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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 helloworld;
+
+import org.apache.tuscany.test.SCATestCase;
+
+/**
+ * This shows how to test the HelloWorld service component.
+ */
+public class HelloWorldTestCase extends SCATestCase {
+
+ protected void setUp() throws Exception {
+ //Enumeration<URL> scdls = getClass().getClassLoader().getResources("META-INF/sca/extension.scdl");
+ //addExtension("JavaRMIBinding", scdls.nextElement());
+ addExtension("rmi.binding", getClass().getClassLoader().getResource("META-INF/sca/rmi_extension.scdl"));
+ super.setUp();
+ System.out.println("Hit ENTER to exit");
+ System.in.read();
+ System.out.println("Server Stopped!");
+ }
+
+ protected void tearDown() throws Exception {
+ super.tearDown();
+ }
+
+ public void testHelloWorld() throws Exception
+ {
+ //nothing to test
+ }
+
+
+}
Propchange: incubator/tuscany/java/samples/sca/helloworld.rmiService/src/test/java/helloworld/HelloWorldTestCase.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/tuscany/java/samples/sca/helloworldJavaScript/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldJavaScript/pom.xml?rev=430912&r1=430911&r2=430912&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldJavaScript/pom.xml (original)
+++ incubator/tuscany/java/samples/sca/helloworldJavaScript/pom.xml Fri Aug 11 15:56:46 2006
@@ -1,63 +1,63 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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>
- <parent>
- <groupId>org.apache.tuscany.samples.sca</groupId>
- <artifactId>tuscany-samples-sca</artifactId>
- <version>1.0-SNAPSHOT</version>
- </parent>
- <modelVersion>4.0.0</modelVersion>
- <artifactId>sample-helloworld-javascript</artifactId>
- <packaging>jar</packaging>
- <name>Tuscany JavaScript helloworld Sample</name>
- <description>A helloworld sample using a single SCA JavaScript component</description>
-
- <dependencies>
- <dependency>
- <groupId>org.osoa</groupId>
- <artifactId>sca-api-r0.95</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany</groupId>
- <artifactId>test</artifactId>
- <version>${sca.version}</version>
- <scope>test</scope>
- </dependency>
- <dependency>
- <groupId>org.apache.tuscany.containers</groupId>
- <artifactId>javascript</artifactId>
- <version>${sca.version}</version>
- <scope>test</scope>
- </dependency>
- </dependencies>
-
- <build>
- <plugins>
- <plugin>
- <groupId>org.apache.maven.plugins</groupId>
- <artifactId>maven-jar-plugin</artifactId>
- <configuration>
- <archive>
- <manifest>
- <mainClass>helloworld.HelloWorldClient</mainClass>
- </manifest>
- </archive>
- </configuration>
- </plugin>
- </plugins>
- </build>
-</project>
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ * Copyright (c) 2005-2006 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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>
+ <parent>
+ <groupId>org.apache.tuscany.samples.sca</groupId>
+ <artifactId>tuscany-samples-sca</artifactId>
+ <version>1.0-SNAPSHOT</version>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <artifactId>sample-helloworld-javascript</artifactId>
+ <packaging>jar</packaging>
+ <name>Tuscany JavaScript helloworld Sample</name>
+ <description>A helloworld sample using a single SCA JavaScript component</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.osoa</groupId>
+ <artifactId>sca-api-r0.95</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany</groupId>
+ <artifactId>test</artifactId>
+ <version>${sca.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.tuscany.containers</groupId>
+ <artifactId>javascript</artifactId>
+ <version>${sca.version}</version>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-jar-plugin</artifactId>
+ <configuration>
+ <archive>
+ <manifest>
+ <mainClass>helloworld.HelloWorldClient</mainClass>
+ </manifest>
+ </archive>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+</project>
Propchange: incubator/tuscany/java/samples/sca/helloworldJavaScript/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldClient.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldClient.java?rev=430912&r1=430911&r2=430912&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldClient.java (original)
+++ incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldClient.java Fri Aug 11 15:56:46 2006
@@ -1,32 +1,32 @@
-/**
- *
- * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
- *
- * Licensed 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 helloworld;
-
-import org.osoa.sca.CurrentCompositeContext;
-
-/**
- * This client program shows how to create an SCA runtime, start it, locate the HelloWorld service and invoke it.
- */
-public class HelloWorldClient {
- public static void main(String[] args) throws Exception {
-
- HelloWorldService helloWorldService = CurrentCompositeContext.getContext().locateService(HelloWorldService.class,
- "HelloWorldComponent");
-
- System.out.println(helloWorldService.sayHello(args.length < 1 ? "world" : args[0]));
- }
-}
+/**
+ *
+ * Copyright 2005 The Apache Software Foundation or its licensors, as applicable.
+ *
+ * Licensed 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 helloworld;
+
+import org.osoa.sca.CurrentCompositeContext;
+
+/**
+ * This client program shows how to create an SCA runtime, start it, locate the HelloWorld service and invoke it.
+ */
+public class HelloWorldClient {
+ public static void main(String[] args) throws Exception {
+
+ HelloWorldService helloWorldService = CurrentCompositeContext.getContext().locateService(HelloWorldService.class,
+ "HelloWorldComponent");
+
+ System.out.println(helloWorldService.sayHello(args.length < 1 ? "world" : args[0]));
+ }
+}
Propchange: incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldClient.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldService.java?rev=430912&r1=430911&r2=430912&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldService.java (original)
+++ incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldService.java Fri Aug 11 15:56:46 2006
@@ -1,7 +1,7 @@
-package helloworld;
-
-public interface HelloWorldService {
-
- String sayHello(String s);
-
-}
+package helloworld;
+
+public interface HelloWorldService {
+
+ String sayHello(String s);
+
+}
Propchange: incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/java/helloworld/HelloWorldService.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/resources/HelloWorld.componentType
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/resources/HelloWorld.componentType?rev=430912&r1=430911&r2=430912&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/resources/HelloWorld.componentType (original)
+++ incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/resources/HelloWorld.componentType Fri Aug 11 15:56:46 2006
@@ -1,9 +1,9 @@
-<?xml version="1.0" encoding="ASCII"?>
-
-<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
-
- <service name="HelloWorldService">
- <interface.java interface="helloworld.HelloWorldService"/>
- </service>
-
-</componentType>
\ No newline at end of file
+<?xml version="1.0" encoding="ASCII"?>
+
+<componentType xmlns="http://www.osoa.org/xmlns/sca/1.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <service name="HelloWorldService">
+ <interface.java interface="helloworld.HelloWorldService"/>
+ </service>
+
+</componentType>
Propchange: incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/resources/HelloWorld.componentType
------------------------------------------------------------------------------
svn:eol-style = native
Modified: incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/resources/HelloWorld.js
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/resources/HelloWorld.js?rev=430912&r1=430911&r2=430912&view=diff
==============================================================================
--- incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/resources/HelloWorld.js (original)
+++ incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/resources/HelloWorld.js Fri Aug 11 15:56:46 2006
@@ -1,3 +1,3 @@
-function sayHello(s) {
- return "Hello " + s;
-}
+function sayHello(s) {
+ return "Hello " + s;
+}
Propchange: incubator/tuscany/java/samples/sca/helloworldJavaScript/src/main/resources/HelloWorld.js
------------------------------------------------------------------------------
svn:eol-style = native
---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org