Claus Ibsen created CAMEL-18918:
-----------------------------------

             Summary: camel-core - Java DSL route builder
                 Key: CAMEL-18918
                 URL: https://issues.apache.org/jira/browse/CAMEL-18918
             Project: Camel
          Issue Type: Improvement
          Components: camel-core
            Reporter: Claus Ibsen


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




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to