Hi,
I’m looking into the possibility of having WPS PPIOs generated by a pluggable factory.
The idea is that one has some sort of PPIO generator, that can turn a certain java object
into many different representations.
Think for example of just exposing all available WFS output formats as PPIOs, that
would be a job for a pluggable PPIO factory (similarly, we could generate PPIOs
from ogr2ogr just like we do for wfs output formats).
The interface would probably be as simple as:
interface PPIOFactory {
List getProcessParameterIO();
}
There are a few hiccups of course:
- Some of these PPIOs might be read only, or write only, for this case we
might actually want to either extend the ProcessParameterIO base class
with two extra methods, canRead and canWrite (or isReadSupported/isWriteSupported,
supportsRead/supportsWrite), or have marker interfaces, ReadOnlyPPIO,
WriteOnlyPPIO - We need to tell apart xml/text/binary formats (as they need to be implement different
base classes) so we either add something to the WFS output formats telling us
which one is what, or in the case of ogr2ogr, add something in the ogr2ogr configuration
to state what type of output we are generating (uh, in the case of XML we might
even have to roll custom xml encoder delegates… so we’d need a factory for those as well…)
Anyways, this is just broad strokes on the idea for the moment. Suggetions/feedback?
Cheers
Andrea
–
==
GeoServer Professional Services from the experts! Visit
http://goo.gl/NWWaa2 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 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it