lburgazzoli opened a new issue #160: remove components configuration dsl
URL: https://github.com/apache/camel-k-runtime/issues/160
 
 
   in groovy and kotlin dsl we have a dedicated dsl for configuring components 
and registry entries, like
   
   ```groovy
   context {
       components {
           seda {
               // set value as method
               queueSize 1234
   
               // set value as property
               concurrentConsumers = 12
           }
   
           mySeda(SedaComponent) {
               // set value as method
               queueSize 4321
   
               // set value as property
               concurrentConsumers = 21
           }
       }
   
       registry {
           myEntry1 = 'myRegistryEntry1'
           myEntry2 = 'myRegistryEntry2'
       }
   }
   ```
   
   but we have now a `beans` dsl that does almost the same thing like:
   
   ```groovy
   beans {
       dataSource(org.apache.commons.dbcp2.BasicDataSource) {
           driverClassName = "org.h2.Driver"
           url = "jdbc:h2:mem:camel"
           username = "sa"
           password = ""
       }
   }
   ```
   
   The behavior is very similar so I'd propose to remove support for the 
`components` and `context` block in favor of the `beans` one.
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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