lburgazzoli opened a new pull request #148: runtime: enhance groovy dsl
URL: https://github.com/apache/camel-k/pull/148
 
 
   
   
   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.**
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to