You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Luca Burgazzoli (JIRA)" <ji...@apache.org> on 2018/10/01 13:11:01 UTC

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

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

Luca Burgazzoli updated CAMEL-12845:
------------------------------------
    Description: 
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}

  was:
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(timer:tick')
        .to('log:end')
}

{code}


> 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.0.0
>
>
> 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.3#76005)