You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2023/01/14 07:21:00 UTC
[jira] [Updated] (CAMEL-18918) camel-core - Java DSL route builder to capture method name as route id
[ https://issues.apache.org/jira/browse/CAMEL-18918?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-18918:
--------------------------------
Summary: camel-core - Java DSL route builder to capture method name as route id (was: camel-core - Java DSL route builder)
> camel-core - Java DSL route builder to capture method name as route id
> ----------------------------------------------------------------------
>
> Key: CAMEL-18918
> URL: https://issues.apache.org/jira/browse/CAMEL-18918
> Project: Camel
> Issue Type: Improvement
> Components: camel-core
> Reporter: Claus Ibsen
> Priority: Minor
>
> 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)