Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

We can also use a * as wildcard so we can just say we want to execute the method with 2 parameters we do

Wiki Markup
{snippet:id=e2e3|lang=java|title=Invoke 2 parameter method using wildcard|url=camel/trunk/camel-core/src/test/java/org/apache/camel/component/bean/BeanOverloadedMethodTest.java}

...

Code Block
   .bean(OrderService.class, "doSomething(com.foo.MyOrder)")
Info

The current implementation for choosing method using type qualifiers only compares the type names. It does not check any instanceof checks or the likes. The type name must match exactly, as its using a string equals comparison.

Parameter binding

When a method have been chosen to be invoked Camel will bind to the parameters of the method.

...