camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cmoulli...@apache.org
Subject svn commit: r1141896 - /camel/trunk/camel-core/src/main/java/org/apache/camel/model/MarshalDefinition.java
Date Fri, 01 Jul 2011 10:31:52 GMT
Author: cmoulliard
Date: Fri Jul  1 10:31:52 2011
New Revision: 1141896

URL: http://svn.apache.org/viewvc?rev=1141896&view=rev
Log:
camel-4167: marshall/unmarshall processors were not added in the TRACE

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/MarshalDefinition.java

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/MarshalDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/MarshalDefinition.java?rev=1141896&r1=1141895&r2=1141896&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/MarshalDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/MarshalDefinition.java Fri
Jul  1 10:31:52 2011
@@ -16,6 +16,13 @@
  */
 package org.apache.camel.model;
 
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlAttribute;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlElements;
+import javax.xml.bind.annotation.XmlRootElement;
+
 import org.apache.camel.Processor;
 import org.apache.camel.model.dataformat.BindyDataFormat;
 import org.apache.camel.model.dataformat.CastorDataFormat;
@@ -43,8 +50,6 @@ import org.apache.camel.processor.Marsha
 import org.apache.camel.spi.DataFormat;
 import org.apache.camel.spi.RouteContext;
 
-import javax.xml.bind.annotation.*;
-
 /**
  * Marshals to a binary payload using the given {@link DataFormatDefinition}
  *
@@ -132,13 +137,4 @@ public class MarshalDefinition extends N
         DataFormat dataFormat = DataFormatDefinition.getDataFormat(routeContext, getDataFormatType(),
ref);
         return new MarshalProcessor(dataFormat);
     }
-
-    @Override
-    public String getLabel() {
-        if (dataFormatType != null) {
-            return "marshal[" + dataFormatType + "]";
-        } else {
-            return "marshal[ref:" + ref + "]";
-        }
-    }
 }



Mime
View raw message