Luca Burgazzoli created CAMEL-12845:
---------------------------------------

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

{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to