Package org.gvsig.fmap.dal
Class DALLocator
java.lang.Object
org.gvsig.tools.locator.AbstractLocator
org.gvsig.fmap.dal.DALLocator
- All Implemented Interfaces:
org.gvsig.tools.locator.Locator,org.gvsig.tools.locator.Locator_withExists
public class DALLocator
extends org.gvsig.tools.locator.AbstractLocator
This locator is the entry point of gvSIG's DAL, providing access to all DAL
services. DAL services are grouped in two managers
DataManager and
ResourceManager.
This locator offers methods for registering as well as for obtaining both
managers' unique instances.- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DataManagerReturn a reference to DataManager.Return a reference to FeatureTypeDefinitionsManager.static DALLocatorReturn the singleton instance.Returns the Locator name.static DataManagerstatic ResourceManagerReturn a reference to ResourceManager.static voidregisterDataManager(Class clazz) Registers the Class implementing the DataManager interface.static voidregisterDefaultDataManager(Class clazz) Registers a class as the default DataManager.static voidRegisters a class as the default FeatureTypeDefinitionsManager.static voidRegisters the Class implementing the FeatureTypeDefinitionsManager interface.static voidregisterResourceManager(Class clazz) Registers the Class implementing the MDManager interface.Methods inherited from class org.gvsig.tools.locator.AbstractLocator
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
-
Field Details
-
DATA_MANAGER_NAME
DataManager name used by the locator to access the instance- See Also:
-
RESOURCE_MANAGER_NAME
ResourceManager name used by the locator to access the instance- See Also:
-
FEATURETYPE_DEFINITIONS_MANAGER_NAME
DataManager name used by the locator to access the instance- See Also:
-
-
Constructor Details
-
DALLocator
public DALLocator()
-
-
Method Details
-
getInstance
Return the singleton instance.- Returns:
- the singleton instance
-
getLocatorName
Returns the Locator name.- Returns:
- String containing the locator name.
-
getDataManager
Return a reference to DataManager.- Returns:
- a reference to DataManager
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
getManager
- Throws:
org.gvsig.tools.locator.LocatorException
-
registerDataManager
Registers the Class implementing the DataManager interface.- Parameters:
clazz- implementing the DataManager interface
-
registerDefaultDataManager
Registers a class as the default DataManager.- Parameters:
clazz- implementing the DataManager interface
-
getResourceManager
Return a reference to ResourceManager.- Returns:
- a reference to ResourceManager
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
registerResourceManager
Registers the Class implementing the MDManager interface.- Parameters:
clazz- implementing the MDManager interface
-
getFeatureTypeDefinitionsManager
public static FeatureTypeDefinitionsManager getFeatureTypeDefinitionsManager() throws org.gvsig.tools.locator.LocatorExceptionReturn a reference to FeatureTypeDefinitionsManager.- Returns:
- a reference to FeatureTypeDefinitionsManager
- Throws:
org.gvsig.tools.locator.LocatorException- if there is no access to the class or the class cannot be instantiated- See Also:
-
registerFeatureTypeDefinitionsManager
Registers the Class implementing the FeatureTypeDefinitionsManager interface.- Parameters:
clazz- implementing the FeatureTypeDefinitionsManager interface
-
registerDefaultFeatureTypeDefinitionsManager
Registers a class as the default FeatureTypeDefinitionsManager.- Parameters:
clazz- implementing the FeatureTypeDefinitionsManager interface
-