svn commit: r711219 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel: management/ processor/ processor/interceptor/

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

svn commit: r711219 - in /activemq/camel/trunk/camel-core/src/main/java/org/apache/camel: management/ processor/ processor/interceptor/

ningjiang
Author: ningjiang
Date: Tue Nov  4 01:55:07 2008
New Revision: 711219

URL: http://svn.apache.org/viewvc?rev=711219&view=rev
Log:
CAMEL-1052 Better toString method for the child class of DelegateProcessor

Modified:
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationProcessor.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/DelegateAsyncProcessor.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/TransformProcessor.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/UnitOfWorkProcessor.java
    activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/StreamCachingInterceptor.java

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationProcessor.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationProcessor.java?rev=711219&r1=711218&r2=711219&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationProcessor.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/management/InstrumentationProcessor.java Tue Nov  4 01:55:07 2008
@@ -41,6 +41,11 @@
 
     public InstrumentationProcessor() {
     }
+    
+    @Override
+    public String toString() {
+        return "Instrumentation(" + processor + ")";
+    }
 
     public void setCounter(PerformanceCounter counter) {
         this.counter = counter;

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/DelegateAsyncProcessor.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/DelegateAsyncProcessor.java?rev=711219&r1=711218&r2=711219&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/DelegateAsyncProcessor.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/DelegateAsyncProcessor.java Tue Nov  4 01:55:07 2008
@@ -39,7 +39,7 @@
 
     @Override
     public String toString() {
-        return "Delegate(" + processor + ")";
+        return "DelegateAsync(" + processor + ")";
     }
 
     public AsyncProcessor getProcessor() {

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/TransformProcessor.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/TransformProcessor.java?rev=711219&r1=711218&r2=711219&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/TransformProcessor.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/TransformProcessor.java Tue Nov  4 01:55:07 2008
@@ -50,6 +50,6 @@
 
     @Override
     public String toString() {
-        return "transform(" + expression + ")";
+        return "transform(" + expression + "," +processor + ")";
     }
 }

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/UnitOfWorkProcessor.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/UnitOfWorkProcessor.java?rev=711219&r1=711218&r2=711219&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/UnitOfWorkProcessor.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/UnitOfWorkProcessor.java Tue Nov  4 01:55:07 2008
@@ -32,6 +32,11 @@
         super(processor);
     }
     
+    @Override
+    public String toString() {
+        return "UnitOfWrok(" + processor + ")";
+    }
+    
     public boolean process(final Exchange exchange, final AsyncCallback callback) {
         if (exchange.getUnitOfWork() == null) {
             // If there is no existing UoW, then we should start one and

Modified: activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/StreamCachingInterceptor.java
URL: http://svn.apache.org/viewvc/activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/StreamCachingInterceptor.java?rev=711219&r1=711218&r2=711219&view=diff
==============================================================================
--- activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/StreamCachingInterceptor.java (original)
+++ activemq/camel/trunk/camel-core/src/main/java/org/apache/camel/processor/interceptor/StreamCachingInterceptor.java Tue Nov  4 01:55:07 2008
@@ -56,7 +56,7 @@
 
     @Override
     public String toString() {
-        return "StreamCachingInterceptor";
+        return "StreamCachingInterceptor(" + processor + ")";
     }
 
     /**