Q: Method references in Camel routes Is there a way to use method references in Camel routes? :
from(X).bean(instance::method)

Thanks

A: There's two ways you can do this.  As CookieSoup mentioned, you can use the bean bindings like this bean(Instance.class, "method(String)").
Or you can use camel Processors and Transforms.  There's an example on github of how to use this (you'll need Camel 2.18.0 or greater).
class SomeClass {
    public void method(String body) {
    }
    public String methodWithReturn(String body) {
        return body;
    } 
}


.processor
    .body(String.class, instance::method)
.translate
    .body(String.class, instance::methodWithReturn)

Note, processors are consumers, whereas transforms are functions that return a transformed message body. 
