Now that we have route templates and kamelets, we should explore the option to have route local beans in addition to route local properties. This would be very useful when dealing with EIPs or endpoints that require specific beans.
As example, assuming I have the following template:
Then myClient need to be created at global scope and there's no way to create one that is specific for the template.
We should provide something like:
So when the route is materialized, the configure method is invoked, the myClient bean is registered to the current template context and retrieved by the reifier to materialize the route.