camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lb <lburgazz...@gmail.com>
Subject Re: [camel-bindy] Handle implied decimal field
Date Tue, 27 Nov 2012 08:00:41 GMT

In org.apache.camel.dataformat.bindy.FormatFactory for non "BigNumbers" the
Format object is chosen as follow:  

if (clazz == float.class || clazz == Float.class) {
    return pattern != null ? new FloatPatternFormat(pattern,
getLocale(locale)) : new FloatFormat();
}

I've noticed that the DataFiled annotation define the pattern field with ""
(empty String) as default value, thus the FormatFactory will always return
the *PatternFormat and never the simple *Format. 

Is there a reason for such behavior?






--
View this message in context: http://camel.465427.n5.nabble.com/camel-bindy-Handle-implied-decimal-field-tp5723003p5723280.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message