You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by jamie3 <ja...@gmail.com> on 2013/08/20 17:29:55 UTC

Field support for OGNL/simple

The camel documentation for the simple component shows that it doesn't
support fields except in 2.11 onwards for the .length in java arrays.

Are fields expected to be added in the future?

If not can you tell the simple component to provide a custom getter class
for the object? For example (psuedo code):

from("direct:somewhere")
.log("Value is ${customRenderer:body}")

where custom customRenderer points to a bean somewhere in the context that
can fetch the field value?



--
View this message in context: http://camel.465427.n5.nabble.com/Field-support-for-OGNL-simple-tp5737609.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Field support for OGNL/simple

Posted by Claus Ibsen <cl...@gmail.com>.
No fields is not being added.

People can use any of the other languages that may support that such
as mvel, ognl, groovy et all

The log is using the simple language, so check its docs if you want to
call a method on a bean, how to do that.


On Tue, Aug 20, 2013 at 5:29 PM, jamie3 <ja...@gmail.com> wrote:
> The camel documentation for the simple component shows that it doesn't
> support fields except in 2.11 onwards for the .length in java arrays.
>
> Are fields expected to be added in the future?
>
> If not can you tell the simple component to provide a custom getter class
> for the object? For example (psuedo code):
>
> from("direct:somewhere")
> .log("Value is ${customRenderer:body}")
>
> where custom customRenderer points to a bean somewhere in the context that
> can fetch the field value?
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Field-support-for-OGNL-simple-tp5737609.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen