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

Introduce RouteBuilderConfigurer

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.2.0
    • Component/s: camel-core
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      We could introduce a RouteBuilderConfigurer interface that would allow to reduce the ceremony needed to set up routes especially when working with CDI/Spring environments like:

      @Produce
      RouteBuilderConfigurer myRoutes() {
          return builder -> builder.from("").to("")
      }
      

      Would be even shorter in kotlin:

      @Produce
      fun myRoutes: RouteBuilderConfigurer = builder -> builder.from("").to("")
      

      A similar idea is implemented in RouteBuilder

      Claus Ibsen does it make sense ?

        Attachments

          Activity

            People

            • Assignee:
              lb Luca Burgazzoli
              Reporter:
              lb Luca Burgazzoli
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: