camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmuel...@apache.org
Subject svn commit: r1420459 - /camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java
Date Tue, 11 Dec 2012 22:09:39 GMT
Author: cmueller
Date: Tue Dec 11 22:09:37 2012
New Revision: 1420459

URL: http://svn.apache.org/viewvc?rev=1420459&view=rev
Log:
CAMEL-5844: Camel Tracer not showing some EIP names

Modified:
    camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java

Modified: camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java?rev=1420459&r1=1420458&r2=1420459&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java
(original)
+++ camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/processor/WrapProcessor.java
Tue Dec 11 22:09:37 2012
@@ -19,14 +19,14 @@ package org.apache.camel.processor;
 import java.util.List;
 
 import org.apache.camel.Processor;
+import org.apache.camel.Traceable;
 import org.apache.camel.util.ServiceHelper;
 
 /**
  * A processor which ensures wrapping processors is having lifecycle handled.
- *
- * @version 
  */
-public class WrapProcessor extends DelegateAsyncProcessor {
+public class WrapProcessor extends DelegateAsyncProcessor implements Traceable {
+
     private final Processor wrapped;
 
     public WrapProcessor(Processor processor, Processor wrapped) {
@@ -38,6 +38,10 @@ public class WrapProcessor extends Deleg
     public String toString() {
         return "Wrap[" + wrapped + "] -> " + processor;
     }
+    
+    public String getTraceLabel() {
+        return "wrap[" + wrapped + "]";
+    }
 
     @Override
     public List<Processor> next() {



Mime
View raw message