I've working to improve the groovy dsl here and I may contribute to camel later 
on to fix [CAMEL-12845](https://issues.apache.org/jira/browse/CAMEL-12845).

An examples:

```groovy
component('seda') {
    // set value as method
    queueSize 1234

    // set value as property
    concurrentConsumers = 12
}

component('log') {
    // injected in LogComponent using
    // groovy's extension module
    formatter {
        'body ==> ' + in.body
    }
}

registry {
    bind 'myEntry1', 'myRegistryEntry1'
    bind 'myEntry2', 'myRegistryEntry2'
}

restConfiguration {
    host 'my-host'
    port '9192'
}

restConfiguration('undertow') {
    host 'my-undertow-host'
    port '9193'
}


from('timer:tick')
    .to('log:info')
```

**IMPORTANT: I've re-wrote this artifact in groovy as it makes it easy to write 
a proper DSL.**


[ Full content available at: https://github.com/apache/camel-k/pull/148 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to