Skip to content

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

Closed
rhuss wants to merge 1 commit into
apache:masterfrom
rhuss:pr/route-via-object-initializer
Closed

rhuss wants to merge 1 commit into
apache:masterfrom
rhuss:pr/route-via-object-initializer

Conversation

@rhuss

@rhuss rhuss commented Jun 29, 2018 •

Copy link
Copy Markdown
Contributor

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

oscerd commented Jun 29, 2018

Copy link
Copy Markdown
Contributor

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

rhuss commented Jun 29, 2018

Copy link
Copy Markdown
Contributor Author

ok, will do.

@rhuss

rhuss commented Jun 29, 2018

Copy link
Copy Markdown
Contributor Author

@oscerd

oscerd commented Jun 29, 2018

Copy link
Copy Markdown
Contributor

Thanks.

@onderson

Copy link
Copy Markdown
Contributor

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

Development

Successfully merging this pull request may close these issues.

3 participants