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

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

Closed
wants to merge 1 commit into from

Conversation

@rhuss
Copy link
Contributor

@rhuss 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.

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
Copy link
Contributor

@oscerd 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
Copy link
Contributor Author

@rhuss rhuss commented Jun 29, 2018

ok, will do.

@oscerd
Copy link
Contributor

@oscerd oscerd commented Jun 29, 2018

Thanks.

@onderson
Copy link
Contributor

@onderson 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
Labels
None yet
Projects
None yet
3 participants