tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From antel...@apache.org
Subject svn commit: r450823 - in /incubator/tuscany/java/sca/services/containers/container.ruby: pom.xml src/test/java/helloworld/HelloWorldService.java src/test/java/helloworld/HelloWorldServiceImpl.java
Date Thu, 28 Sep 2006 12:07:36 GMT
Author: antelder
Date: Thu Sep 28 05:07:35 2006
New Revision: 450823

URL: http://svn.apache.org/viewvc?view=rev&rev=450823
Log:
update ruby container for the recent runtime reorgsand remove unused axiom/e4x stuff

Modified:
    incubator/tuscany/java/sca/services/containers/container.ruby/pom.xml
    incubator/tuscany/java/sca/services/containers/container.ruby/src/test/java/helloworld/HelloWorldService.java
    incubator/tuscany/java/sca/services/containers/container.ruby/src/test/java/helloworld/HelloWorldServiceImpl.java

Modified: incubator/tuscany/java/sca/services/containers/container.ruby/pom.xml
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/containers/container.ruby/pom.xml?view=diff&rev=450823&r1=450822&r2=450823
==============================================================================
--- incubator/tuscany/java/sca/services/containers/container.ruby/pom.xml (original)
+++ incubator/tuscany/java/sca/services/containers/container.ruby/pom.xml Thu Sep 28 05:07:35
2006
@@ -20,8 +20,8 @@
 <project>
 
     <parent>
-        <groupId>org.apache.tuscany.containers</groupId>
-        <artifactId>containers</artifactId>
+        <groupId>org.apache.tuscany.sca.services.containers</groupId>
+        <artifactId>parent</artifactId>
         <version>1.0-incubator-M2-SNAPSHOT</version>
     </parent>
 
@@ -41,7 +41,9 @@
     <dependencies>
         <dependency>
             <groupId>org.apache.tuscany.sca.kernel</groupId>
-            <artifactId>core</artifactId>
+            <artifactId>tuscany-spi</artifactId>
+            <version>${sca.version}</version>
+            <scope>compile</scope>
         </dependency>
         <dependency>
            <groupId>org.jruby</groupId>
@@ -50,13 +52,13 @@
             <scope>compile</scope>
         </dependency>
         <dependency>
-            <groupId>org.apache.tuscany.idl</groupId>
+            <groupId>org.apache.tuscany.sca.services.idl</groupId>
             <artifactId>wsdl</artifactId>
             <version>${sca.version}</version>
             <scope>compile</scope>
         </dependency>
         <dependency>
-            <groupId>org.apache.tuscany</groupId>
+            <groupId>org.apache.tuscany.sca</groupId>
             <artifactId>test</artifactId>
             <version>${sca.version}</version>
             <scope>test</scope>
@@ -68,18 +70,6 @@
         <dependency>
             <groupId>org.easymock</groupId>
             <artifactId>easymockclassextension</artifactId>
-        </dependency>
-        <dependency>
-            <groupId>ws-commons</groupId>
-            <artifactId>axiom-api</artifactId>
-            <version>1.0</version>
-            <scope>compile</scope>
-        </dependency>
-        <dependency>
-            <groupId>ws-commons</groupId>
-            <artifactId>axiom-impl</artifactId>
-            <version>1.0</version>
-            <scope>test</scope>
         </dependency>
     </dependencies>
 </project>

Modified: incubator/tuscany/java/sca/services/containers/container.ruby/src/test/java/helloworld/HelloWorldService.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/containers/container.ruby/src/test/java/helloworld/HelloWorldService.java?view=diff&rev=450823&r1=450822&r2=450823
==============================================================================
--- incubator/tuscany/java/sca/services/containers/container.ruby/src/test/java/helloworld/HelloWorldService.java
(original)
+++ incubator/tuscany/java/sca/services/containers/container.ruby/src/test/java/helloworld/HelloWorldService.java
Thu Sep 28 05:07:35 2006
@@ -18,10 +18,7 @@
  */
 package helloworld;
 
-import org.apache.axiom.om.OMElement;
-
 public interface HelloWorldService {
 
     String sayHello(String s);
-    OMElement sayE4XHello(OMElement xmlObject);
 }

Modified: incubator/tuscany/java/sca/services/containers/container.ruby/src/test/java/helloworld/HelloWorldServiceImpl.java
URL: http://svn.apache.org/viewvc/incubator/tuscany/java/sca/services/containers/container.ruby/src/test/java/helloworld/HelloWorldServiceImpl.java?view=diff&rev=450823&r1=450822&r2=450823
==============================================================================
--- incubator/tuscany/java/sca/services/containers/container.ruby/src/test/java/helloworld/HelloWorldServiceImpl.java
(original)
+++ incubator/tuscany/java/sca/services/containers/container.ruby/src/test/java/helloworld/HelloWorldServiceImpl.java
Thu Sep 28 05:07:35 2006
@@ -18,36 +18,8 @@
  */
 package helloworld;
 
-import java.io.ByteArrayInputStream;
-
-import javax.xml.stream.XMLStreamReader;
-
-import org.apache.axiom.om.OMAbstractFactory;
-import org.apache.axiom.om.OMElement;
-import org.apache.axiom.om.impl.builder.StAXOMBuilder;
-import org.apache.axiom.om.util.StAXUtils;
 
 public class HelloWorldServiceImpl implements HelloWorldService {
-
-    public OMElement sayE4XHello(OMElement xmlObject) {
-
-        String helloString = "<hel:getGreetingsResponse xmlns:hel=\"http://helloworld\">"
-                + "<hel:getGreetingsReturn>Hello from Java Implementation to </hel:getGreetingsReturn>NoString</hel:getGreetingsResponse>";
-
-        try {
-            String inputValue = xmlObject.getFirstElement().getText();
-
-            XMLStreamReader xmlReader = StAXUtils.createXMLStreamReader(new ByteArrayInputStream(helloString.getBytes()));
-
-            StAXOMBuilder staxOMBuilder = new StAXOMBuilder(OMAbstractFactory.getOMFactory(),
xmlReader);
-            OMElement response = staxOMBuilder.getDocumentElement();
-            response.getFirstElement().setText(response.getFirstElement().getText() + inputValue);
-
-            return response;
-        } catch (Exception e) {
-            return null;
-        }
-    }
 
     public String sayHello(String s) {
         return "Hello " + s;



---------------------------------------------------------------------
To unsubscribe, e-mail: tuscany-commits-unsubscribe@ws.apache.org
For additional commands, e-mail: tuscany-commits-help@ws.apache.org


Mime
View raw message