Andrea raised this issue:
http://jira.codehaus.org/browse/GEOT-1659
An initial investigation suggests the the problem is related to the existence of
global (system-wide) hints. Sometime the referencing module really wants a
factory for a specific set of hints, without merge with global hints.
My incompatible change proposal:
* Turns every ReferencingFactoryFinder static methods into non-static methods.
Note that only ReferencingFactoryFinder (and maybe other FactoryFinders if we
want to uniformize this approach) would be affected. The widely-used CRS
convenient class would *not* be affected.
If this proposal is accepted, I can declare two ReferencingFactoryFinder
instances: DEFAULT and STRICT. Users would need to replace every calls to:
ReferencingFactoryFinder.getFooFactory(...)
by
ReferencingFactoryFinder.DEFAULT.getFooFactory(...)
We can do that with a search-and-replace tool like we did for Logging (actually
it is easier than Logging, since there is no import statement or class name to
change).
Transition path
---------------
"ReferencingFactoryFinder" has been introduced on 2.4, which is not yet
released. On the 2.4 branch, the deprecated "FactoryFinder" class would stay
as-is: static methods delegating to ReferencingFactoryFinder.DEFAULT. So the
"deprecate" cycle would be respected, but very late since it is so close to 2.4
release.
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://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel