Hello Tim
Thanks a lot for your emails, it is very welcome!
My knowledge of Feature model is too limited for being useful, but I will read
again your comments carefully and try to learn more.
About factories, we are aware that they are not satisfying. An old GeoTools
version was using properties like core Java DOM. Then we switched to an other
mechanism used by Java Image I/O: factories are registered in
META-INF/services/
directory bundled in JAR file. This mechanism has been standardized in core
Java
as of Java 6:
http://java.sun.com/javase/6/docs/api/java/util/ServiceLoader.html
The javadoc in the above page gives an example of usage. With this mechanism,
there is no global variable that various libraries could override. However a
user wanting a factory get the set of all factory implementations available.
The
question become: which one to use.
GeoTools has a mechanism for specfying the "preferred" factories using a set of
hints. But this mechanism is complex.
There is a demand for using an other framework like Spring. This is a possible
approach, while it would introduce a dependency which is more of interest to
JEE
applications than JSE ones.
Yet an other alternative is to look at what will come up from JSR-277, to be
bundled in Java 7:
http://jcp.org/en/jsr/detail?id=277
So in short, the issue of factories in Geotools is not resolved. I have not yet
a clear answer to suggest, only some possibilities open for consideration.
Regards,
Martin
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users