|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFactoryFinder
JTSFactoryFinder
public class JTSFactoryFinder
Defines static methods used to access geometry, coordinate sequence or precision model factories.
Field Summary |
---|
Fields inherited from class FactoryFinder |
---|
EMPTY_HINTS |
Method Summary | |
---|---|
static Set |
getCoordinateSequenceFactories()
Returns a set of all available implementations for the CoordinateSequenceFactory
interface. |
static CoordinateSequenceFactory |
getCoordinateSequenceFactory(Hints hints)
Returns the first implementation of CoordinateSequenceFactory matching the specified
hints. |
static Set |
getGeometryFactories()
Returns a set of all available implementations for the GeometryFactory category. |
static GeometryFactory |
getGeometryFactory()
Returns the first implementation of GeometryFactory , a new one is created if
possible or an exception is thrown otherwise. |
static GeometryFactory |
getGeometryFactory(Hints hints)
Returns the first implementation of GeometryFactory matching the specified hints. |
static PrecisionModel |
getPrecisionModel(Hints hints)
Returns the first implementation of PrecisionModel matching the specified hints. |
static Set |
getPrecisionModels()
Returns a set of all available implementations for the PrecisionModel category. |
static void |
scanForPlugins()
Scans for factory plug-ins on the application class path. |
Methods inherited from class FactoryFinder |
---|
mergeSystemHints |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GeometryFactory getGeometryFactory(Hints hints) throws FactoryRegistryException
GeometryFactory
matching the specified hints.
If no implementation matches, a new one is created if possible or an exception is thrown
otherwise.
Hints that may be understood includes
JTS_COORDINATE_SEQUENCE_FACTORY
,
JTS_PRECISION_MODEL
and
JTS_SRID
.
hints
- An optional map of hints, or null
if none.
FactoryRegistryException
- if no implementation was found or can be created for the
GeometryFactory
category and the given hints.public static GeometryFactory getGeometryFactory() throws FactoryRegistryException
GeometryFactory
, a new one is created if
possible or an exception is thrown otherwise.
FactoryRegistryException
- if no implementation was found or can be created for the
GeometryFactory
category.public static Set getGeometryFactories()
GeometryFactory
category.
public static PrecisionModel getPrecisionModel(Hints hints) throws FactoryRegistryException
PrecisionModel
matching the specified hints.
If no implementation matches, a new one is created if possible or an exception is thrown
otherwise.
hints
- An optional map of hints, or null
if none.
FactoryRegistryException
- if no implementation was found or can be created for the
PrecisionModel
category and the given hints.public static Set getPrecisionModels()
PrecisionModel
category.
public static CoordinateSequenceFactory getCoordinateSequenceFactory(Hints hints) throws FactoryRegistryException
CoordinateSequenceFactory
matching the specified
hints. If no implementation matches, a new one is created if possible or an exception is
thrown otherwise.
hints
- An optional map of hints, or null
if none.
FactoryRegistryException
- if no implementation was found or can be created for the
CoordinateSequenceFactory
interface and the given hints.public static Set getCoordinateSequenceFactories()
CoordinateSequenceFactory
interface.
public static void scanForPlugins()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |