On Tue, Aug 14, 2012 at 1:53 AM, Jody Garnett <[email protected]>wrote:

>  I thought we had covered this one already? i.e. the fact it was a solid
> limitation of what annotations can do.
>

I don't remember we did, but that's not a problem


>
> However we may be working a bit too hard..
>
> For most basic types (and quite a few others) we have enough information
> to run our Converters
> - String value provided by annotation
> - Target Class provided by function parameter
>
> This should be enough to handle things like "123", "12.3", "#FFFFFF",
> dates, geometry and so on.
>

Non trivial processes tend to have complex input parameters, beans instead
of common "primitives"
(to be interpreted in a lax way, e.g., Date as a primitive too), such as
ranges, lists of values.

I'm tempted to just go the way to suggest though, it covers a good number
of use cases and it's
the easiest way for the user to deal with.

Maybe in WPS land we can also use the PPIOs as tentative converters, in any
case a complex bean
needs to be de-serialized from string/xml/json somehow.
Geotools wise one could write a custom converter, although that seems a
quite a bit heavy handed
way to just have a mean of declaring a default value...


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

-------------------------------------------------------
------------------------------------------------------------------------------
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

Reply via email to