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:18:40 UTC

[GitHub] [camel] lburgazzoli commented on a change in pull request #5074: core: tidy up PropertyBindingSupport::resolveBean

lburgazzoli commented on a change in pull request #5074:
URL: https://github.com/apache/camel/pull/5074#discussion_r574422028



##########
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:
       well, I was using it :)




----------------------------------------------------------------
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