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

Camel Components - Generate per component Java fluent builder

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0.M4, 3.0.0
    • Component/s: tooling
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      Similar to CAMEL-8361, but for generating java source code fluent builder, so people can configured components and endpoints in a nicer style.

      Endpoint file = FileEndpointBuilder.directory("somepath").recursive(true).includes("*.txt").build();
      ...
      

      Though there is a few tasks to figure out.

      We would need some template as skeleton for generating the source code. And we would need a naming convention for the class name. And also we should allow each builder method to have 2 options. As its original type, eg String, boolean, int, etc. And then an alternative that uses a String so people can use property placeholders, eg "foo".

      And besides endpoints we should also generate for components as well, so its easier to configure them.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gnt Guillaume Nodet
                Reporter:
                davsclaus Claus Ibsen
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: