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

camel-core - Java DSL route builder to capture method name as route id

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Abandoned
    • None
    • None
    • camel-core
    • None
    • Unknown

    Description

      In Java (or other programming languages like groovy/kotlin) we could potentially have a base method in RouteBuilder that can capture the method name that can be useful as route id.

      This allows users to use separate methods per route, and call them via configure()

      void configure()

      { foo(); bar(); }

      private void foo()

      { from xxx routeId (methodName()) ... }

      private void bar()

      { from yyy routeId (methodName()) ... }

      Then the routes are named foo, bar and so forth

      Attachments

        Activity

          People

            Unassigned Unassigned
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: