camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jamie Archibald <>
Subject Custom object renders for simple expression language?
Date Sat, 21 Sep 2013 21:34:15 GMT
I'm wondering if camel supports custom object renders (similar to log4j)
when doing the simple expression language? Currently it appears it just
calls toString() on the object

for example.

.log("Hello World ${body}");

Rather than calling ${body}.toString() I would like to have it call some
external bean that knows how to render the object.

For example

MyCustomRenderer implement ICamelObjectRenderer {

    public String render(MyObject obj)
           return obj.getName() + obj.getPhoneNumber();


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message