You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2011/06/18 14:28:36 UTC
svn commit: r1137178 -
/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
Author: davsclaus
Date: Sat Jun 18 12:28:36 2011
New Revision: 1137178
URL: http://svn.apache.org/viewvc?rev=1137178&view=rev
Log:
@deprecated routingSlip methods in Java DSL which uses a String header as we should prefer to use the method that uses an Expression instead. Also to reduce the sheer number of methods in the Java DSL.
Modified:
camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java?rev=1137178&r1=1137177&r2=1137178&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java (original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java Sat Jun 18 12:28:36 2011
@@ -1478,8 +1478,10 @@ public abstract class ProcessorDefinitio
* @param uriDelimiter is the delimiter that will be used to split up
* the list of URIs in the routing slip.
* @return the builder
+ * @deprecated prefer to use {@link #routingSlip(org.apache.camel.Expression, String)} instead
*/
@SuppressWarnings("unchecked")
+ @Deprecated
public Type routingSlip(String header, String uriDelimiter) {
RoutingSlipDefinition answer = new RoutingSlipDefinition(header, uriDelimiter);
addOutput(answer);
@@ -1498,8 +1500,10 @@ public abstract class ProcessorDefinitio
* @param header is the header that the {@link org.apache.camel.processor.RoutingSlip RoutingSlip}
* class will look in for the list of URIs to route the message to.
* @return the builder
+ * @deprecated prefer to use {@link #routingSlip(org.apache.camel.Expression)} instead
*/
@SuppressWarnings("unchecked")
+ @Deprecated
public Type routingSlip(String header) {
RoutingSlipDefinition answer = new RoutingSlipDefinition(header);
addOutput(answer);
@@ -1520,8 +1524,10 @@ public abstract class ProcessorDefinitio
* @param ignoreInvalidEndpoints if this parameter is true, routingSlip will ignore the endpoints which
* cannot be resolved or a producer cannot be created or started
* @return the builder
+ * @deprecated prefer to use {@link #routingSlip()} instead
*/
@SuppressWarnings("unchecked")
+ @Deprecated
public Type routingSlip(String header, String uriDelimiter, boolean ignoreInvalidEndpoints) {
RoutingSlipDefinition answer = new RoutingSlipDefinition(header, uriDelimiter);
answer.setIgnoreInvalidEndpoints(ignoreInvalidEndpoints);
@@ -1543,8 +1549,10 @@ public abstract class ProcessorDefinitio
* @param ignoreInvalidEndpoints if this parameter is true, routingSlip will ignore the endpoints which
* cannot be resolved or a producer cannot be created or started
* @return the builder
+ * @deprecated prefer to use {@link #routingSlip()} instead
*/
@SuppressWarnings("unchecked")
+ @Deprecated
public Type routingSlip(String header, boolean ignoreInvalidEndpoints) {
RoutingSlipDefinition answer = new RoutingSlipDefinition(header);
answer.setIgnoreInvalidEndpoints(ignoreInvalidEndpoints);