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 2020/03/11 21:54:06 UTC
[camel] 02/02: camel-bean - optimize
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/camel.git
commit c3ed7fd0275586e65af457d90569891175f61c6d
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Wed Mar 11 22:38:24 2020 +0100
camel-bean - optimize
---
.../java/org/apache/camel/component/bean/BeanInfo.java | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanInfo.java b/components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanInfo.java
index 13ff155..16a3818 100644
--- a/components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanInfo.java
+++ b/components/camel-bean/src/main/java/org/apache/camel/component/bean/BeanInfo.java
@@ -171,25 +171,9 @@ public class BeanInfo {
public MethodInvocation createInvocation(Object pojo, Exchange exchange)
throws AmbiguousMethodCallException, MethodNotFoundException {
- return createInvocation(pojo, exchange, null);
- }
- private MethodInvocation createInvocation(Object pojo, Exchange exchange, Method explicitMethod)
- throws AmbiguousMethodCallException, MethodNotFoundException {
MethodInfo methodInfo = null;
- // find the explicit method to invoke
- if (explicitMethod != null) {
- for (List<MethodInfo> infos : operations.values()) {
- for (MethodInfo info : infos) {
- if (explicitMethod.equals(info.getMethod())) {
- return info.createMethodInvocation(pojo, info.hasParameters(), exchange);
- }
- }
- }
- throw new MethodNotFoundException(exchange, pojo, explicitMethod.getName());
- }
-
String methodName = exchange.getIn().getHeader(Exchange.BEAN_METHOD_NAME, String.class);
if (methodName != null) {