The only change in this commit is to rename FactoryFinder
as ReferencingFactoryFinder
.
However this change does not apply to SIS since we do not plan to port [Referencing]FactoryFinder
.
The plan is to replace them by some dependency injection mechanism.
Command line:
svn diff --extensions "--unified --ignore-space-change --ignore-all-space --ignore-eol-style" -r25049:25050 https://svn.osgeo.org/geotools/trunk/modules/library/referencing/src/main/java/org/geotools/referencing/factory/ReferencingObjectFactory.java
Revision 25049 | Revision 25050 |
---|---|
// Geotools dependencies
import org.geotools.factory.Hints;
import org.geotools.referencing.FactoryFinder;
import org.geotools.referencing.wkt.Parser;
import org.geotools.referencing.wkt.Symbols;
import org.geotools.referencing.crs.DefaultCompoundCRS; |
// Geotools dependencies
import org.geotools.factory.Hints;
import org.geotools.referencing.ReferencingFactoryFinder;
import org.geotools.referencing.wkt.Parser;
import org.geotools.referencing.wkt.Symbols;
import org.geotools.referencing.crs.DefaultCompoundCRS; |
* not instantiate this factory directly, but use one of the following lines instead: * * <blockquote><pre> * {@linkplain DatumFactory} factory = FactoryFinder.{@linkplain FactoryFinder#getDatumFactory getDatumFactory()}; * {@linkplain CSFactory} factory = FactoryFinder.{@linkplain FactoryFinder#getCSFactory getCSFactory()}; * {@linkplain CRSFactory} factory = FactoryFinder.{@linkplain FactoryFinder#getCRSFactory getCRSFactory()}; * </pre></blockquote> */ public GeotoolsFactory() { |
* not instantiate this factory directly, but use one of the following lines instead: * * <blockquote><pre> * {@linkplain DatumFactory} factory = FactoryFinder.{@linkplain ReferencingFactoryFinder#getDatumFactory getDatumFactory()}; * {@linkplain CSFactory} factory = FactoryFinder.{@linkplain ReferencingFactoryFinder#getCSFactory getCSFactory()}; * {@linkplain CRSFactory} factory = FactoryFinder.{@linkplain ReferencingFactoryFinder#getCRSFactory getCRSFactory()}; * </pre></blockquote> */ public GeotoolsFactory() { |
// synchronize. if (parser == null) { final Hints hints = new Hints(getImplementationHints()); parser = new Parser(Symbols.DEFAULT, FactoryFinder.getDatumFactory(hints), this, this, FactoryFinder.getMathTransformFactory(hints)); } try { return parser.parseCoordinateReferenceSystem(wkt); |
// synchronize. if (parser == null) { final Hints hints = new Hints(getImplementationHints()); parser = new Parser(Symbols.DEFAULT, ReferencingFactoryFinder.getDatumFactory(hints), this, this, ReferencingFactoryFinder.getMathTransformFactory(hints)); } try { return parser.parseCoordinateReferenceSystem(wkt); |