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/31 15:35:00 UTC

[jira] [Commented] (CAMEL-15487) LambdaRouteBuilderTemplate - Allow to define a route template via lambda style

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

Claus Ibsen commented on CAMEL-15487:
-------------------------------------

Okay we can get this to work as-is today, so all good

    @BindToRegistry
    public LambdaRouteBuilder myTemplate() {
        return rb -> rb.routeTemplate("myTemplate")
                .from("quartz:foo?cron={{myCron}}")
                .log("${body}");
    }


> LambdaRouteBuilderTemplate - Allow to define a route template via lambda style
> ------------------------------------------------------------------------------
>
>                 Key: CAMEL-15487
>                 URL: https://issues.apache.org/jira/browse/CAMEL-15487
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Priority: Major
>             Fix For: 3.6.0
>
>
> Like you can do with regular routes
> https://camel.apache.org/manual/latest/lambda-route-builder.html
> It should be possible to do for templates. As a RouteBuilder can also be a template then its possible, however its the work that registers this behind the scene that assume its a route and not a template.
> So maybe its better to have a LambdaRouteBuilderTemplate functional interface



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