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 2019/08/06 14:37:00 UTC

[jira] [Commented] (CAMEL-12845) Create a full Groovy DSL

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

Claus Ibsen commented on CAMEL-12845:
-------------------------------------

Camel K has a set of nice DSLs for scripting like Camel routes. Lets build and make these DSLs there first before adding/move to main CamelĀ 

> Create a full Groovy DSL
> ------------------------
>
>                 Key: CAMEL-12845
>                 URL: https://issues.apache.org/jira/browse/CAMEL-12845
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-groovy
>            Reporter: Luca Burgazzoli
>            Priority: Minor
>              Labels: scripting
>             Fix For: 3.x
>
>
> It would be nice to have a nice dsl set up a camel context in groovy similar to what it is possible with Spring or Blueprint DSL, something like
> {code:java}
> context {
>     restConfiguration {
>         ....
>     }
>    registry {
>        bind 'myKey', 'myValue'
>    }
>    beans {
>        bean('myProcessor') {
>            exchange -> exchange.in.body = 'hello'
>        }
>    }
>     from(t'imer:tick')
>         .to('log:end')
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)