You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ni...@apache.org on 2012/10/26 15:27:30 UTC
svn commit: r1402506 - in /camel/branches/camel-2.9.x: ./
camel-core/src/main/java/org/apache/camel/model/WireTapDefinition.java
Author: ningjiang
Date: Fri Oct 26 13:27:30 2012
New Revision: 1402506
URL: http://svn.apache.org/viewvc?rev=1402506&view=rev
Log:
CAMEL-5746 add copy method to WireTapDefinition to let user choice if copying or not copying the origin exchange
Modified:
camel/branches/camel-2.9.x/ (props changed)
camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/model/WireTapDefinition.java
Propchange: camel/branches/camel-2.9.x/
------------------------------------------------------------------------------
Merged /camel/trunk:r1402485
Merged /camel/branches/camel-2.10.x:r1402502
Propchange: camel/branches/camel-2.9.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified: camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/model/WireTapDefinition.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/model/WireTapDefinition.java?rev=1402506&r1=1402505&r2=1402506&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/model/WireTapDefinition.java (original)
+++ camel/branches/camel-2.9.x/camel-core/src/main/java/org/apache/camel/model/WireTapDefinition.java Fri Oct 26 13:27:30 2012
@@ -193,6 +193,18 @@ public class WireTapDefinition<Type exte
setCopy(true);
return this;
}
+
+ /**
+ * Uses a copy of the original exchange
+ *
+ * @param copy if it is true camel will copy the original exchange,
+ * if it is false camel will not copy the original exchange
+ * @return the builder
+ */
+ public WireTapDefinition<Type> copy(boolean copy) {
+ setCopy(copy);
+ return this;
+ }
/**
* @deprecated will be removed in Camel 3.0 Instead use {@link #newExchangeBody(org.apache.camel.Expression)}