ppalaga edited a comment on issue #2492:
URL: https://github.com/apache/camel-quarkus/issues/2492#issuecomment-829423964


   * Pass the method name via `CamelBeanMethodName` header
     * See `BeanTest.beanMethodInHeader()`
   * "the type of the body is used to find a matching method; an error is 
thrown if a single method cannot be chosen unambiguously."
     * `NamedBean` has `hello(String)` and `hello(Integer)`. `BeanTest.named()` 
still hits `hello(String)` for a String payload.
   * Use Exchange as the parameter itself, but then the return type must be 
void 
     * See `BeanTest.methodWithExchangeArg()`
   * Return a CompletionStage implementation (e.g. a CompletableFuture)
     * See `BeanTest.completionStageBean()`
   * Have multiple params, e.g. `doSomething(String body, Registry r, Exchange 
e)`
     * See `BeanTest.multiArgMethod()`
   * Parameter binding annotations 
https://camel.apache.org/manual/latest/parameter-binding-annotations.html
     * See `BeanTest.parameterBindingAnnotations()`
   * Parameter literals `.bean(OrderService.class, "doSomething(*, true)")` - 
works without simple language
     * See `BeanTest.parameterLiterals()`
   * Param types to select the right overload `hello(String,String)`
     * See `BeanTest.parameterTypes()`


-- 
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:
[email protected]


Reply via email to