Is there a one liner Java DSL to do the following:
.process(new Processor() {
@Override
public void process(Exchange exchange) throws Exception {
exchange.setProperty("name", new MyBean());
}
})
The goal is to have a property 'name' initialised with an new instance of MyBean class before other logic in the route.
I think it must be in the form of:
.setProperty("name", ... expression ...)
I cannot find the right expression.
Thanks.