You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2020/08/11 12:41:00 UTC

[jira] [Comment Edited] (CAMEL-14297) Introduce RouteBuilderConfigurer

    [ 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/11/20, 12:40 PM:
----------------------------------------------------------------

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


was (Author: davsclaus):
TODO: RouteBuilderConfgurer *DONE*
TODO: Discover RouteBuilderConfigurer from registry and add them as routes
TODO: camel-example
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)