public class DALLocator extends AbstractLocator
DataManager
and
ResourceManager
.
This locator offers methods for registering as well as for obtaining both
managers' unique instances.Locator
Modifier and Type | Field and Description |
---|---|
static String |
DATA_MANAGER_NAME
DataManager name used by the locator to access the instance
|
static String |
FEATURETYPE_DEFINITIONS_MANAGER_NAME
DataManager name used by the locator to access the instance
|
static String |
RESOURCE_MANAGER_NAME
ResourceManager name used by the locator to access the instance
|
Constructor and Description |
---|
DALLocator() |
Modifier and Type | Method and Description |
---|---|
static DataManager |
getDataManager()
Return a reference to DataManager.
|
static FeatureTypeDefinitionsManager |
getFeatureTypeDefinitionsManager()
Return a reference to FeatureTypeDefinitionsManager.
|
static DALLocator |
getInstance()
Return the singleton instance.
|
String |
getLocatorName()
Returns the Locator name.
|
static ResourceManager |
getResourceManager()
Return a reference to ResourceManager.
|
static void |
registerDataManager(Class clazz)
Registers the Class implementing the DataManager interface.
|
static void |
registerDefaultDataManager(Class clazz)
Registers a class as the default DataManager.
|
static void |
registerDefaultFeatureTypeDefinitionsManager(Class clazz)
Registers a class as the default FeatureTypeDefinitionsManager.
|
static void |
registerFeatureTypeDefinitionsManager(Class clazz)
Registers the Class implementing the FeatureTypeDefinitionsManager
interface.
|
static void |
registerResourceManager(Class clazz)
Registers the Class implementing the MDManager interface.
|
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
public static final String DATA_MANAGER_NAME
public static final String RESOURCE_MANAGER_NAME
public static final String FEATURETYPE_DEFINITIONS_MANAGER_NAME
public static DALLocator getInstance()
public String getLocatorName()
public static DataManager getDataManager() throws LocatorException
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerDataManager(Class clazz)
clazz
- implementing the DataManager interfacepublic static void registerDefaultDataManager(Class clazz)
clazz
- implementing the DataManager interfacepublic static ResourceManager getResourceManager() throws LocatorException
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerResourceManager(Class clazz)
clazz
- implementing the MDManager interfacepublic static FeatureTypeDefinitionsManager getFeatureTypeDefinitionsManager() throws LocatorException
LocatorException
- if there is no access to the class or the class
cannot be instantiatedLocator.get(String)
public static void registerFeatureTypeDefinitionsManager(Class clazz)
clazz
- implementing the FeatureTypeDefinitionsManager interfacepublic static void registerDefaultFeatureTypeDefinitionsManager(Class clazz)
clazz
- implementing the FeatureTypeDefinitionsManager interface