Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10140

Java 8 type safe process DSL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.18.0
    • camel-core
    • None
    • Unknown

    Description

      See if we can get a process with lambda style that has a type-safe message body type, so you can do something like

      .process<Foo.class&gt;( f -> { f.doSomethingOnFoo(); ... })
      .to("direct:bar");
      

      And see if we can get a mini DSL for the process so you can also get access to header/exchange etc.

      .process<Foo.class&gt;( f -> { 
         String golden = header("golden", String.class);
         f.doSomethingOnFoo(golden); 
      })
      .to("direct:bar");
      

      Attachments

        Issue Links

          Activity

            People

              lb Luca Burgazzoli
              davsclaus Claus Ibsen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: