Package org.gvsig.gazetteer
Class GazetteerLocator
java.lang.Object
org.gvsig.tools.locator.AbstractLocator
org.gvsig.gazetteer.GazetteerLocator
- All Implemented Interfaces:
org.gvsig.tools.locator.Locator,org.gvsig.tools.locator.Locator_withExists
public class GazetteerLocator
extends org.gvsig.tools.locator.AbstractLocator
This Locator provides the entry point for the gvSIG
GazetteerManager- Author:
- Jorge Piera
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGazetteerManager name used by the locator to access the instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GazetteerManagerReturn a reference toGazetteerManager.static GazetteerLocatorReturn the singleton instance.static voidregisterGazetteerManager(Class clazz) Registers the Class implementing theGazetteerManagerinterface.Methods inherited from class org.gvsig.tools.locator.AbstractLocator
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
-
Field Details
-
GAZETTEER_MANAGER_NAME
GazetteerManager name used by the locator to access the instance- See Also:
-
-
Constructor Details
-
GazetteerLocator
public GazetteerLocator()
-
-
Method Details
-
getLocatorName
-
getGazetteerManager
public static GazetteerManager getGazetteerManager() throws org.gvsig.tools.locator.LocatorExceptionReturn a reference toGazetteerManager.- Returns:
- a reference to GazetteerManager
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
getInstance
Return the singleton instance.- Returns:
- the singleton instance
-
registerGazetteerManager
Registers the Class implementing theGazetteerManagerinterface.- Parameters:
clazz- implementing the IGazetteerServiceDriver interface
-