Is it possible to invoke a static method in the middle of the route without
having to use a processor or other wrapper?
Basically I have a simple static utility function that I want to invoke and
use it's results as a header.
Normally this would look like:
from(someInput)
.bean(someBean)
.setHeader("someheader",
bean(willMakeHeaderInfoFromResultsOfSomeBean))
.filter().method(someFilter)
.bean(someOtherBean);
The method in willMakeHeaderInfoFromResultsOfSomeBean is short and can come
from a strategy enum which I want to use directly.
Sorry I can't find anything in the docs that mentions this but is this
possible directly from the route?