You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by cm...@apache.org on 2011/07/01 12:32:31 UTC
svn commit: r1141897 -
/camel/trunk/camel-core/src/main/java/org/apache/camel/model/UnmarshalDefinition.java
Author: cmoulliard
Date: Fri Jul 1 10:32:31 2011
New Revision: 1141897
URL: http://svn.apache.org/viewvc?rev=1141897&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/UnmarshalDefinition.java
Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/UnmarshalDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/UnmarshalDefinition.java?rev=1141897&r1=1141896&r2=1141897&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/UnmarshalDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/UnmarshalDefinition.java Fri Jul 1 10:32:31 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.Unmars
import org.apache.camel.spi.DataFormat;
import org.apache.camel.spi.RouteContext;
-import javax.xml.bind.annotation.*;
-
/**
* Unmarshals the binary payload using the given {@link DataFormatDefinition}
*
@@ -132,13 +137,4 @@ public class UnmarshalDefinition extends
DataFormat dataFormat = DataFormatDefinition.getDataFormat(routeContext, getDataFormatType(), ref);
return new UnmarshalProcessor(dataFormat);
}
-
- @Override
- public String getLabel() {
- if (dataFormatType != null) {
- return "unmarshal[" + dataFormatType + "]";
- } else {
- return "unmarshal[ref:" + ref + "]";
- }
- }
}