git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GitHub] camel pull request #2401: feat: Add default implementation of a RouteBuilder


GitHub user rhuss opened a pull request:

    https://github.com/apache/camel/pull/2401

    feat: Add default implementation of a RouteBuilder

    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.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/rhuss/camel pr/route-via-object-initializer

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/camel/pull/2401.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #2401
    
----
commit 2881818b30973caaad4b505bb567fda6195f7820
Author: Roland HuÃ? <roland@...>
Date:   2018-06-29T14:49:11Z

    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");
    }});

----


---