Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime: enhance groovy dsl #148

Merged
merged 1 commit into from Oct 2, 2018
Merged

Conversation

lburgazzoli
Copy link
Contributor

I've working to improve the groovy dsl here and I may contribute to camel later on to fix CAMEL-12845.

An examples:

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.

@asfgit
Copy link

asfgit commented Oct 2, 2018

Refer to this link for build results (access rights to CI server needed):
https://builds.apache.org/job/Camel-k-pr/7/

@lburgazzoli lburgazzoli added the status/wip Work in progress label Oct 2, 2018
@nicolaferraro nicolaferraro merged commit 8676390 into apache:master Oct 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status/wip Work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants