[ https://issues.apache.org/jira/browse/CAMEL-11547?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16089094#comment-16089094 ]
Luca Burgazzoli commented on CAMEL-11547: ----------------------------------------- There's no big advantages of doing so but I thought about it while watching the tutorial on spring integration you posted some time ago were routes/flows were created like beans and I found it interesting. It is linked to camel core because that it can scan the registry for beans of type route definition and it will then work for every platform. > camel-core: load route definitions from registry > ------------------------------------------------ > > Key: CAMEL-11547 > URL: https://issues.apache.org/jira/browse/CAMEL-11547 > Project: Camel > Issue Type: Improvement > Components: camel-core > Reporter: Luca Burgazzoli > Assignee: Luca Burgazzoli > Priority: Minor > Fix For: 2.20.0 > > > This would allow to write routes i.e. in spring boot like > {code:java} > import static RouteDefinitionHelper.from; > @Bean > RouteDefinition myRoute() { > return from("...") > .process(..) > .to("...") > } > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)