This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-2.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-2.x by this push:
new fb5278e Add missing docs for EIPs
fb5278e is described below
commit fb5278ea2860e05b833f8e32d4ec6c2dfcc73c94
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Jan 19 09:57:17 2019 +0100
Add missing docs for EIPs
---
.../src/main/java/org/apache/camel/model/CatchDefinition.java | 9 ++++++++-
.../main/java/org/apache/camel/model/OnExceptionDefinition.java | 3 +++
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git
a/camel-core/src/main/java/org/apache/camel/model/CatchDefinition.java
b/camel-core/src/main/java/org/apache/camel/model/CatchDefinition.java
index 9efccd5..d138ada 100644
--- a/camel-core/src/main/java/org/apache/camel/model/CatchDefinition.java
+++ b/camel-core/src/main/java/org/apache/camel/model/CatchDefinition.java
@@ -50,7 +50,8 @@ public class CatchDefinition extends
ProcessorDefinition<CatchDefinition> {
private List<String> exceptions = new ArrayList<>();
@XmlElement(name = "onWhen") @AsPredicate
private WhenDefinition onWhen;
- @XmlElement(name = "handled") @AsPredicate
+ @XmlElement(name = "handled") @AsPredicate @Metadata(deprecationNote =
"not in use")
+ @Deprecated
private ExpressionSubElementDefinition handled;
@XmlElementRef
private List<ProcessorDefinition<?>> outputs = new ArrayList<>();
@@ -267,6 +268,12 @@ public class CatchDefinition extends
ProcessorDefinition<CatchDefinition> {
return handled;
}
+ /**
+ * Expression to be used for evaluate whether the doCatch should catch the
exception or not.
+ *
+ * @deprecated not in use
+ */
+ @Deprecated
public void setHandled(ExpressionSubElementDefinition handled) {
this.handled = handled;
}
diff --git
a/camel-core/src/main/java/org/apache/camel/model/OnExceptionDefinition.java
b/camel-core/src/main/java/org/apache/camel/model/OnExceptionDefinition.java
index de56e56..db80e60 100644
--- a/camel-core/src/main/java/org/apache/camel/model/OnExceptionDefinition.java
+++ b/camel-core/src/main/java/org/apache/camel/model/OnExceptionDefinition.java
@@ -907,6 +907,9 @@ public class OnExceptionDefinition extends
ProcessorDefinition<OnExceptionDefini
return redeliveryPolicyType;
}
+ /**
+ * Used for configuring redelivery options
+ */
public void setRedeliveryPolicyType(RedeliveryPolicyDefinition
redeliveryPolicyType) {
this.redeliveryPolicyType = redeliveryPolicyType;
}