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 2019/05/23 19:31:00 UTC
[camel] 14/18: CAMEL-13557: Add property binding support to make it
convenient to configure components and whatnot.
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch 13557
in repository https://gitbox.apache.org/repos/asf/camel.git
commit abf8fde04be4315479590c1c7dea98f284ead2f1
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu May 23 14:25:40 2019 +0200
CAMEL-13557: Add property binding support to make it convenient to configure components and whatnot.
---
.../apache/camel/support/IntrospectionSupport.java | 25 ++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/core/camel-support/src/main/java/org/apache/camel/support/IntrospectionSupport.java b/core/camel-support/src/main/java/org/apache/camel/support/IntrospectionSupport.java
index 01f8eee..6af2cec 100644
--- a/core/camel-support/src/main/java/org/apache/camel/support/IntrospectionSupport.java
+++ b/core/camel-support/src/main/java/org/apache/camel/support/IntrospectionSupport.java
@@ -419,7 +419,11 @@ public final class IntrospectionSupport {
}
return false;
}
-
+
+ /**
+ * @deprecated use {@link PropertyBindingSupport}
+ */
+ @Deprecated
public static boolean setProperties(Object target, Map<String, Object> properties, String optionPrefix, boolean allowBuilderPattern) throws Exception {
ObjectHelper.notNull(target, "target");
ObjectHelper.notNull(properties, "properties");
@@ -441,6 +445,10 @@ public final class IntrospectionSupport {
return rc;
}
+ /**
+ * @deprecated use {@link PropertyBindingSupport}
+ */
+ @Deprecated
public static boolean setProperties(Object target, Map<String, Object> properties, String optionPrefix) throws Exception {
StringHelper.notEmpty(optionPrefix, "optionPrefix");
return setProperties(target, properties, optionPrefix, false);
@@ -472,6 +480,7 @@ public final class IntrospectionSupport {
return rc;
}
+ @Deprecated
public static Map<String, String> extractStringProperties(Map<String, Object> properties) {
ObjectHelper.notNull(properties, "properties");
@@ -486,6 +495,10 @@ public final class IntrospectionSupport {
return rc;
}
+ /**
+ * @deprecated use {@link PropertyBindingSupport}
+ */
+ @Deprecated
public static boolean setProperties(CamelContext context, TypeConverter typeConverter, Object target, Map<String, Object> properties) throws Exception {
ObjectHelper.notNull(target, "target");
ObjectHelper.notNull(properties, "properties");
@@ -501,11 +514,19 @@ public final class IntrospectionSupport {
return rc;
}
-
+
+ /**
+ * @deprecated use {@link PropertyBindingSupport}
+ */
+ @Deprecated
public static boolean setProperties(TypeConverter typeConverter, Object target, Map<String, Object> properties) throws Exception {
return setProperties(null, typeConverter, target, properties);
}
+ /**
+ * @deprecated use {@link PropertyBindingSupport}
+ */
+ @Deprecated
public static boolean setProperties(Object target, Map<String, Object> properties) throws Exception {
return setProperties(null, target, properties);
}