svn commit: r756400 - in /camel/trunk/camel-core/src: main/java/org/apache/camel/builder/ main/java/org/apache/camel/component/bean/ main/java/org/apache/camel/util/ test/java/org/apache/camel/impl/

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r756400 - in /camel/trunk/camel-core/src: main/java/org/apache/camel/builder/ main/java/org/apache/camel/component/bean/ main/java/org/apache/camel/util/ test/java/org/apache/camel/impl/

davsclaus-2
Author: davsclaus
Date: Fri Mar 20 10:17:38 2009
New Revision: 756400

URL: http://svn.apache.org/viewvc?rev=756400&view=rev
Log:
Fixed CS. Added TRACE logging when loading class.

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/BeanInfo.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
    camel/trunk/camel-core/src/test/java/org/apache/camel/impl/GzipDataFormatTest.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java?rev=756400&r1=756399&r2=756400&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/builder/DataFormatClause.java Fri Mar 20 10:17:38 2009
@@ -18,6 +18,8 @@
 
 import java.util.zip.Deflater;
 
+import org.w3c.dom.Node;
+
 import org.apache.camel.model.ProcessorDefinition;
 import org.apache.camel.model.dataformat.ArtixDSContentType;
 import org.apache.camel.model.dataformat.ArtixDSDataFormat;
@@ -35,7 +37,6 @@
 import org.apache.camel.model.dataformat.XMLSecurityDataFormat;
 import org.apache.camel.model.dataformat.XStreamDataFormat;
 import org.apache.camel.model.dataformat.ZipDataFormat;
-import org.w3c.dom.Node;
 
 /**
  * An expression for constructing the different possible {@link org.apache.camel.spi.DataFormat}

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/BeanInfo.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/BeanInfo.java?rev=756400&r1=756399&r2=756400&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/BeanInfo.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/component/bean/BeanInfo.java Fri Mar 20 10:17:38 2009
@@ -103,10 +103,6 @@
         return answer;
     }
 
-    /**
-     * @deprecated not used
-     */
-    @Deprecated
     public MethodInvocation createInvocation(Method method, Object pojo, Exchange exchange) throws RuntimeCamelException {
         MethodInfo methodInfo = introspect(type, method);
         if (methodInfo != null) {

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java?rev=756400&r1=756399&r2=756400&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/util/ObjectHelper.java Fri Mar 20 10:17:38 2009
@@ -540,6 +540,9 @@
             return null;
         }
         try {
+            if (LOG.isTraceEnabled()) {
+                LOG.trace("Loading class: " + name + " using classloader: " + loader);
+            }
             return loader.loadClass(name);
         } catch (ClassNotFoundException e) {
             if (LOG.isTraceEnabled()) {

Modified: camel/trunk/camel-core/src/test/java/org/apache/camel/impl/GzipDataFormatTest.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/test/java/org/apache/camel/impl/GzipDataFormatTest.java?rev=756400&r1=756399&r2=756400&view=diff
==============================================================================
--- camel/trunk/camel-core/src/test/java/org/apache/camel/impl/GzipDataFormatTest.java (original)
+++ camel/trunk/camel-core/src/test/java/org/apache/camel/impl/GzipDataFormatTest.java Fri Mar 20 10:17:38 2009
@@ -28,12 +28,12 @@
  * Unit test of the gzip data format.
  */
 public class GzipDataFormatTest extends ContextTestSupport {
-    private static final String TEXT = "Hamlet by William Shakespeare\n" +
-                "To be, or not to be: that is the question:\n" +
-         "Whether 'tis nobler in the mind to suffer\n" +
-         "The slings and arrows of outrageous fortune,\n" +
-         "Or to take arms against a sea of troubles,\n" +
-         "And by opposing end them? To die: to sleep;";;
+    private static final String TEXT = "Hamlet by William Shakespeare\n"
+            + "To be, or not to be: that is the question:\n"
+            + "Whether 'tis nobler in the mind to suffer\n"
+            + "The slings and arrows of outrageous fortune,\n"
+            + "Or to take arms against a sea of troubles,\n"
+            + "And by opposing end them? To die: to sleep;";
 
     @Override
     public boolean isUseRouteBuilder() {
@@ -53,7 +53,7 @@
         context.start();
 
         byte[] output = sendText();
-        
+
         GZIPInputStream stream = new GZIPInputStream(new ByteArrayInputStream(output));
         String result = IOConverter.toString(stream);
         assertEquals("Uncompressed something different than compressed", TEXT, result);
@@ -67,9 +67,9 @@
         });
         context.start();
 
-        MockEndpoint result = (MockEndpoint)context.getEndpoint("mock:result");
+        MockEndpoint result = (MockEndpoint) context.getEndpoint("mock:result");
         result.expectedBodiesReceived(TEXT.getBytes("UTF-8"));
         sendText();
         result.assertIsSatisfied();
-    }    
+    }
 }