While Daniele had a nice simple request for an unsupported module yesterday;
today I have a slightly different kettle of fish ... a design problem.
I may get an opportunity to clean up the GeoTools factory / plugin system - but
not from the direction I was expecting. For the longest time any discussion
about plugins has started with OSGi or Spring.
The team who contacted me have mostly ported GeoTools to Andriod; resulting in
the following two blockers:
1) Factory SPI does not work
I think the approach recommended in the OSGi discussion can work here;
basically set up a Lookup class with different backends in the same design as
we used for Logging.
Additional thoughts:
- separate out "plugin" (allowing the abilities of a jar to be recognised) from
"factory" (keeping some instances based on their configuration)
- may need the equivalent of an an Activator (allowing a plugin to "register"
and "deregister" as needed)
- proof of concept could include SPI solution (by default) and example of a
direct configuration ( for use by andriod), code woudl not be considered
complete until the OSGi crew had shown they could work with it
I am pretty sure this could be done with out disrupting existing
implementations.
2) Hints does not work
This was a surprise to me; basically our Hints are a straight extension of the
Java2D rendering hints; to "fix" this I would need to look into breaking that
relationship; and possibly relaxing our Hints class to allow Object as a key
(so either Java 2D rendering hints could be used; or our GeoTools hints).
This one annoys me as I don't think I could handle it without disrupting
existing implementations.
This also implys I would not expect the gt-render module to work on andriod;
but much of the lower levels of the library (such as gt-main, and gt-data
should be able to function).
Does anyone have any further thoughts or experience with Andriod as a target
platform? Moovida I know you have some experience on GeoPaparazzi?
--
Jody Garnett
------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network
management toolset available today. Delivers lowest initial
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel