You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2020/04/24 07:28:53 UTC
[GitHub] [camel-k] lburgazzoli commented on issue #1426: Kotlin documentation incorrect for kotlin DSL
lburgazzoli commented on issue #1426:
URL: https://github.com/apache/camel-k/issues/1426#issuecomment-618852051
That documentation need to be updated :)
The registry has been removed in favour of a "bean dsl":
```kotlin
beans {
bean<org.apache.commons.dbcp2.BasicDataSource>("dataSource") {
driverClassName = "org.h2.Driver"
url = "jdbc:h2:mem:camel"
username = "sa"
password = ""
}
bean("filterStrategy") {
org.apache.camel.support.DefaultHeaderFilterStrategy()
}
processor("myProcessor") {
it.getIn().body = "Hello"
}
predicate("myPredicate") {
false
}
}
```
----------------------------------------------------------------
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:
users@infra.apache.org