Package org.gvsig.catalog
Class CatalogLocator
java.lang.Object
org.gvsig.tools.locator.AbstractLocator
org.gvsig.catalog.CatalogLocator
- All Implemented Interfaces:
org.gvsig.tools.locator.Locator,org.gvsig.tools.locator.Locator_withExists
public class CatalogLocator
extends org.gvsig.tools.locator.AbstractLocator
This Locator provides the entry point for the gvSIG
CatalogManager- Author:
- Jorge Piera
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCatalogManager name used by the locator to access the instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CatalogManagerReturn a reference toCatalogManager.static CatalogLocatorReturn the singleton instance.static voidregisterCatalogManager(Class clazz) Registers the Class implementing theCatalogManagerinterface.Methods inherited from class org.gvsig.tools.locator.AbstractLocator
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
-
Field Details
-
CATALOG_MANAGER_NAME
CatalogManager name used by the locator to access the instance- See Also:
-
-
Constructor Details
-
CatalogLocator
public CatalogLocator()
-
-
Method Details
-
getLocatorName
-
getCatalogManager
Return a reference toCatalogManager.- Returns:
- a reference to CatalogManager
- 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
-
registerCatalogManager
Registers the Class implementing theCatalogManagerinterface.- Parameters:
clazz- implementing the ICatalogServiceDriver interface
-