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/05/05 08:30:00 UTC

[jira] [Updated] (CAMEL-14297) Introduce RouteBuilderConfigurer

     [ https://issues.apache.org/jira/browse/CAMEL-14297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Claus Ibsen updated CAMEL-14297:
--------------------------------
    Fix Version/s:     (was: 3.3.0)
                   3.4.0

> 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: Luca Burgazzoli
>            Priority: Major
>             Fix For: 3.4.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)