cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bimargul...@apache.org
Subject svn commit: r596138 - in /incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped: GreeterFaultImpl.java GreeterImpl.java
Date Sun, 18 Nov 2007 21:13:18 GMT
Author: bimargulies
Date: Sun Nov 18 13:13:17 2007
New Revision: 596138

URL: http://svn.apache.org/viewvc?rev=596138&view=rev
Log:
Clean up some use of System.out.println. Should we PMD this?

Modified:
    incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java
    incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterImpl.java

Modified: incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java?rev=596138&r1=596137&r2=596138&view=diff
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java
(original)
+++ incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterFaultImpl.java
Sun Nov 18 13:13:17 2007
@@ -19,6 +19,10 @@
 
 package org.apache.hello_world_xml_http.wrapped;
 
+import java.util.logging.Logger;
+
+import org.apache.cxf.common.logging.LogUtils;
+
 
 @javax.jws.WebService(serviceName = "XMLService", 
                       portName = "XMLFaultPort",
@@ -29,15 +33,16 @@
 @javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xformat")
 
 public class GreeterFaultImpl implements Greeter {
-
     public static final String RUNTIME_EXCEPTION_MESSAGE = "test throw out runtime exception";
+    private static final Logger LOG = LogUtils.getL7dLogger(GreeterFaultImpl.class); 
+
     public String greetMe(String me) {        
         return "Hello " + me;
     }
 
     public void greetMeOneWay(String me) {
-        System.out.println("Executing operation greetMeOneWay\n");
-        System.out.println("Hello there " + me);
+        LOG.info("Executing operation greetMeOneWay");
+        LOG.info("Hello there " + me);
     }
 
     public String sayHi() {

Modified: incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterImpl.java
URL: http://svn.apache.org/viewvc/incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterImpl.java?rev=596138&r1=596137&r2=596138&view=diff
==============================================================================
--- incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterImpl.java
(original)
+++ incubator/cxf/trunk/testutils/src/main/java/org/apache/hello_world_xml_http/wrapped/GreeterImpl.java
Sun Nov 18 13:13:17 2007
@@ -19,6 +19,9 @@
 
 package org.apache.hello_world_xml_http.wrapped;
 
+import java.util.logging.Logger;
+
+import org.apache.cxf.common.logging.LogUtils;
 import org.apache.hello_world_xml_http.wrapped.types.FaultDetail;
 
 @javax.jws.WebService(serviceName = "XMLService", 
@@ -30,22 +33,27 @@
 @javax.xml.ws.BindingType(value = "http://cxf.apache.org/bindings/xformat")
 
 public class GreeterImpl implements Greeter {
+    
+    private static final Logger LOG = LogUtils.getL7dLogger(GreeterImpl.class); 
+
 
     public String greetMe(String me) {        
-        System.out.println("Executing operation greetMe\n" + me);
+        LOG.info("Executing operation greetMe\n" + me);
         return "Hello " + me;
     }
 
     public void greetMeOneWay(String me) {
-        System.out.println("Executing operation greetMeOneWay\n");
-        System.out.println("Hello there " + me);
+        LOG.info("Executing operation greetMeOneWay\n");
+        LOG.info("Hello there " + me);
     }
 
     public String sayHi() {
+        LOG.info("Executing operation sayHi\n");
         return "Bonjour";
     }
 
     public void pingMe() throws PingMeFault {
+        LOG.info("Executing operation pingMe\n");
         FaultDetail faultDetail = new FaultDetail();
         faultDetail.setMajor((short)2);
         faultDetail.setMinor((short)1);



Mime
View raw message