davsclaus commented on issue #2271: URL: https://github.com/apache/camel-k/issues/2271#issuecomment-832816252
Yeah then the `beans` part of the `template` can then use the new local bean `bind` in camel-core (Camel 3.10 - CAMEL-16584). Then that bean `myBean` is local and only available while the template is creating routes. And each route will have its own instance that bean created. The route template DSL in camel-core-model, does not however have `beans`, but its a novel idea, we could consider adding that, which allow this to be done in a more general and vanilla fashion with camel-core for all runtimes (not a special syntax in camel-k). -- 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: us...@infra.apache.org