Intellij Idea formats the code on camel routes as follows:
from("direct:loop") .log("Loop: ${header[loopCount]}") .choice() .when(simple("header[loopCount] < 10")) .process(exchange -> { Message in = exchange.getIn(); in.setHeader("loopCount", in.getHeader("loopCount", Integer.class) + 1); }) .to("direct:loop") .otherwise() .log("Exiting loop") .end();
Are there any plugins or other ways to do this:
from("direct:loop") .log("Loop: ${header[loopCount]}") .choice() .when(simple("header[loopCount] < 10")) .process(exchange -> { Message in = exchange.getIn(); in.setHeader("loopCount", in.getHeader("loopCount", Integer.class) + 1); }) .to("direct:loop") .otherwise() .log("Exiting loop") .end();
?
source share