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

feat: Add default implementation of a RouteBuilder [POC] #2401

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@rhuss
Copy link
Contributor

rhuss commented Jun 29, 2018

So that you can easily use object initializers for initialising routes
like in

ctx.add(new Routes {{
      from("file:data/inbox?noop=true")
        .to("file:data/outbox");
}});

This is a POC, and not meant to be merged but trigger some discussions around this idea
which btw was 'borrowed' from JMockit. Its IMO the simplest way with the less of boilerplate
to introduce a Java DSL.

If interested I could elaborate on it and add some tests and/or docs.

feat: Add default implementation of a RouteBuilder
So that you can easily use object initializer for initialising routes
like in

ctx.add(new Routes {{
      from("file:data/inbox?noop=true")
        .to("file:data/outbox");
}});
@oscerd

This comment has been minimized.

Copy link
Contributor

oscerd commented Jun 29, 2018

Thanks @rhuss can you start a discussion on JIRA https://issues.apache.org/jira/browse/CAMEL maybe linking this PR? Thanks!

@rhuss rhuss changed the title feat: Add default implementation of a RouteBuilder feat: Add default implementation of a RouteBuilder [POC] Jun 29, 2018

@rhuss

This comment has been minimized.

Copy link
Contributor

rhuss commented Jun 29, 2018

ok, will do.

@rhuss

This comment has been minimized.

Copy link
Contributor

rhuss commented Jun 29, 2018

@oscerd

This comment has been minimized.

Copy link
Contributor

oscerd commented Jun 29, 2018

Thanks.

@onderson

This comment has been minimized.

Copy link
Contributor

onderson commented Nov 19, 2018

maybe we can close PR as we already have JIRA.

@oscerd oscerd closed this Nov 19, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment