[ 
https://issues.apache.org/jira/browse/CAMEL-14297?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17175525#comment-17175525
 ] 

Claus Ibsen edited comment on CAMEL-14297 at 8/12/20, 7:29 AM:
---------------------------------------------------------------

TODO: RouteBuilderConfgurer *DONE*
TODO: Discover RouteBuilderConfigurer from registry and add them as routes 
(main *DONE*, spring boot *DONE*, quarkus *DONE*)
TODO: camel-example *DONE*
TODO: documentation


was (Author: davsclaus):
TODO: RouteBuilderConfgurer *DONE*
TODO: Discover RouteBuilderConfigurer from registry and add them as routes 
(main *DONE*, spring boot *DONE*, quarkus)
TODO: camel-example *DONE*
TODO: documentation

> Introduce RouteBuilderConfigurer
> --------------------------------
>
>                 Key: CAMEL-14297
>                 URL: https://issues.apache.org/jira/browse/CAMEL-14297
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Luca Burgazzoli
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.5.0
>
>
> We could introduce a RouteBuilderConfigurer interface that would allow to 
> reduce the ceremony needed to set up routes especially when working with 
> CDI/Spring environments like:
> {code:java}
> @Produce
> RouteBuilderConfigurer myRoutes() {
>     return builder -> builder.from("").to("")
> }
> {code}
> Would be even shorter in kotlin:
> {code:java}
> @Produce
> fun myRoutes: RouteBuilderConfigurer = builder -> builder.from("").to("")
> {code}
> A similar idea is implemented in 
> [RouteBuilder|https://github.com/apache/camel/blob/67139e00133b5d276a6eafeea292385089b233b0/core/camel-core-engine/src/main/java/org/apache/camel/builder/RouteBuilder.java#L100-L107]
>  
> [~davsclaus] does it make sense ?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to