On Wed, Aug 8, 2012 at 8:22 AM, Andrea Aime <[email protected]>wrote:
> On Wed, Aug 8, 2012 at 3:14 PM, Justin Deoliveira <[email protected]>wrote:
>
>> Sounds reasonable. I guess the potential pitfall is any code that is
>> relying on an unsafe conversion. In this case do you need the conversion to
>> return null (ie fail to convert) or do you need it engage with the correct
>> (safe conversion)? If the latter perhaps a two pass approach might work in
>> which first a safe conversion is tried and then a second unsafe is tried
>> only if the safe path failed. I have seen this approach used in other
>> places.
>
>
> Converters allow for both type of conversions by default, and disable the
> unsafe ones only
> on demand when , there is an example in NumericConverterFactory where the
> safe converter
> factory is created only if ConverterFactory.SAFE_CONVERSION is provided
> with a value of true,
> otherwise the unsafe one is created.
>
> Ahh ok, thought it was the other way around. Anyways, it all sounds good
to me.
My plan was to mimic that, and have the process factories dealing with
> annotated processes
> use only safe conversions
>
> Cheers
> Andrea
>
> --
> ==
> Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
> information.
> ==
>
> Ing. Andrea Aime
> @geowolf
> Technical Lead
>
> GeoSolutions S.A.S.
> Via Poggio alle Viti 1187
> 55054 Massarosa (LU)
> Italy
> phone: +39 0584 962313
> fax: +39 0584 962313
> mob: +39 339 8844549
>
> http://www.geo-solutions.it
> http://twitter.com/geosolutions_it
>
> -------------------------------------------------------
>
>
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel