Package org.geotools.util.factory
Class FactoryFinder
- Object
-
- FactoryFinder
-
- Direct Known Subclasses:
CommonFactoryFinder,CoverageFactoryFinder,HTTPClientFinder,JTSFactoryFinder,Processors,ReferencingFactoryFinder
public abstract class FactoryFinder extends Object
Base class for factory finders.FactoryFinders are cover forFactoryRegistryadding type safety, default hints and synchronization for multi-thread environments.- Since:
- 2.4
- Author:
- Martin Desruisseaux
-
-
Field Summary
Fields Modifier and Type Field Description static HintsEMPTY_HINTSA set of empty hints, which exclude any system hints.
-
Constructor Summary
Constructors Modifier Constructor Description protectedFactoryFinder()Creates a new factory finder.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static HintsmergeSystemHints(Hints hints)Returns new hints that combine user supplied hints with the defaults hints.
-
-
-
Field Detail
-
EMPTY_HINTS
public static final Hints EMPTY_HINTS
A set of empty hints, which exclude any system hints.
-
-
Method Detail
-
mergeSystemHints
public static Hints mergeSystemHints(Hints hints)
Returns new hints that combine user supplied hints with the defaults hints. If a hint is specified in both user and default hints, then user hints have precedence.The returned hints should live only the time needed for invoking
FactoryRegistrymethods. No long-term reference should be held.- Parameters:
hints- The user hints, ornullif none.- Returns:
- New hints (never
null).
-
-