Package org.gvsig.fmap.geom
Class GeometryLocator
java.lang.Object
org.gvsig.tools.locator.AbstractLocator
org.gvsig.fmap.geom.GeometryLocator
- All Implemented Interfaces:
org.gvsig.tools.locator.Locator,org.gvsig.tools.locator.Locator_withExists
public class GeometryLocator
extends org.gvsig.tools.locator.AbstractLocator
This Locator provides the entry point for the gvSIG
GeometryManager.- Author:
- gvSIG team
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGeometryManager name used by the locator to access the instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GeometryManagerReturn a reference toGeometryManager.static GeometryLocatorReturn the singleton instance.static voidregisterGeometryManager(Class clazz) Registers the Class implementing theGeometryManagerinterface.Methods inherited from class org.gvsig.tools.locator.AbstractLocator
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
-
Field Details
-
GEOMETRY_MANAGER_NAME
GeometryManager name used by the locator to access the instance- See Also:
-
-
Constructor Details
-
GeometryLocator
public GeometryLocator()
-
-
Method Details
-
getInstance
Return the singleton instance.- Returns:
- the singleton instance
-
getLocatorName
-
getGeometryManager
Return a reference toGeometryManager.- Returns:
- a reference to GeometryManager
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
registerGeometryManager
Registers the Class implementing theGeometryManagerinterface.- Parameters:
clazz- implementing the GeometryManager interface
-