camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1150086 - in /camel/trunk/camel-core/src/main/java/org/apache/camel/model: ProcessorDefinition.java SetOutHeaderDefinition.java
Date Sat, 23 Jul 2011 11:35:20 GMT
Author: davsclaus
Date: Sat Jul 23 11:35:20 2011
New Revision: 1150086

URL: http://svn.apache.org/viewvc?rev=1150086&view=rev
Log:
deprecated methods in DSL not really needed

Modified:
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/ProcessorDefinition.java
    camel/trunk/camel-core/src/main/java/org/apache/camel/model/SetOutHeaderDefinition.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=1150086&r1=1150085&r2=1150086&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
Jul 23 11:35:20 2011
@@ -2528,7 +2528,9 @@ public abstract class ProcessorDefinitio
      *
      * @param name  the header name
      * @return a expression builder clause to set the header
+     * @deprecated use {@link #setHeader(String)}
      */
+    @Deprecated
     public ExpressionClause<ProcessorDefinition<Type>> setOutHeader(String name)
{
         ExpressionClause<ProcessorDefinition<Type>> clause = new ExpressionClause<ProcessorDefinition<Type>>(this);
         SetOutHeaderDefinition answer = new SetOutHeaderDefinition(name, clause);
@@ -2542,8 +2544,10 @@ public abstract class ProcessorDefinitio
      * @param name  the header name
      * @param expression  the expression used to set the header
      * @return the builder
+     * @deprecated use {@link #setHeader(String, org.apache.camel.Expression)}
      */
     @SuppressWarnings("unchecked")
+    @Deprecated
     public Type setOutHeader(String name, Expression expression) {
         SetOutHeaderDefinition answer = new SetOutHeaderDefinition(name, expression);
         addOutput(answer);
@@ -2556,7 +2560,9 @@ public abstract class ProcessorDefinitio
      * @param name  the header name
      * @param expression  the expression used to set the header
      * @return the builder
+     * @deprecated use {@link #setHeader(String, org.apache.camel.Expression)}
      */
+    @Deprecated
     public Type setFaultHeader(String name, Expression expression) {
         return process(ProcessorBuilder.setFaultHeader(name, expression));
     }

Modified: camel/trunk/camel-core/src/main/java/org/apache/camel/model/SetOutHeaderDefinition.java
URL: http://svn.apache.org/viewvc/camel/trunk/camel-core/src/main/java/org/apache/camel/model/SetOutHeaderDefinition.java?rev=1150086&r1=1150085&r2=1150086&view=diff
==============================================================================
--- camel/trunk/camel-core/src/main/java/org/apache/camel/model/SetOutHeaderDefinition.java
(original)
+++ camel/trunk/camel-core/src/main/java/org/apache/camel/model/SetOutHeaderDefinition.java
Sat Jul 23 11:35:20 2011
@@ -31,9 +31,12 @@ import org.apache.camel.util.ObjectHelpe
 
 /**
  * Represents an XML &lt;setOutHeader/&gt; element
+ *
+ * @deprecated not really needed, will be removed in the future
  */
 @XmlRootElement(name = "setOutHeader")
 @XmlAccessorType(XmlAccessType.FIELD)
+@Deprecated
 public class SetOutHeaderDefinition extends NoOutputExpressionNode {
     @XmlAttribute(required = true)
     private String headerName;



Mime
View raw message