You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/02/11 11:15:24 UTC
[GitHub] [camel] davsclaus commented on a change in pull request #5074: core: tidy up PropertyBindingSupport::resolveBean
davsclaus commented on a change in pull request #5074:
URL: https://github.com/apache/camel/pull/5074#discussion_r574420075
##########
File path: core/camel-support/src/main/java/org/apache/camel/support/PropertyBindingSupport.java
##########
@@ -1438,23 +1438,46 @@ private static boolean isParameterMatchingType(Class<?> parameterType, Class<?>
return parameterType.isAssignableFrom(expectedType);
}
+ /**
+ * Resolves the value as either a class, type or bean.
+ *
+ * @param camelContext the camel context
+ * @param name the name of the bean. Never used
+ * @param value how to resolve the bean with a prefix of either #class:, #type: or #bean:
+ * @return the resolve bean
+ * @throws Exception is thrown if error resolving the bean, or if the value is invalid.
+ *
+ * @deprecated use {@link #resolveBean(CamelContext, Object)}
+ */
+ @Deprecated
+ public static Object resolveBean(CamelContext camelContext, String name, Object value) throws Exception {
Review comment:
Just remove the old method as its not used anywhere outside core
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org