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 java.lang.String |
DATA_MANAGER_NAME
DataManager name used by the locator to access the instance
|
static java.lang.String |
FEATURETYPE_DEFINITIONS_MANAGER_NAME
DataManager name used by the locator to access the instance
|
static java.lang.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.
|
java.lang.String |
getLocatorName()
Returns the Locator name.
|
static DataManager |
getManager() |
static ResourceManager |
getResourceManager()
Return a reference to ResourceManager.
|
static void |
registerDataManager(java.lang.Class clazz)
Registers the Class implementing the DataManager interface.
|
static void |
registerDefaultDataManager(java.lang.Class clazz)
Registers a class as the default DataManager.
|
static void |
registerDefaultFeatureTypeDefinitionsManager(java.lang.Class clazz)
Registers a class as the default FeatureTypeDefinitionsManager.
|
static void |
registerFeatureTypeDefinitionsManager(java.lang.Class clazz)
Registers the Class implementing the FeatureTypeDefinitionsManager
interface.
|
static void |
registerResourceManager(java.lang.Class clazz)
Registers the Class implementing the MDManager interface.
|
exists, get, getNames, register, register, register, register, registerDefault, registerDefault, toString
public static final java.lang.String DATA_MANAGER_NAME
public static final java.lang.String RESOURCE_MANAGER_NAME
public static final java.lang.String FEATURETYPE_DEFINITIONS_MANAGER_NAME
public static DALLocator getInstance()
public java.lang.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 DataManager getManager() throws LocatorException
LocatorException
public static void registerDataManager(java.lang.Class clazz)
clazz
- implementing the DataManager interfacepublic static void registerDefaultDataManager(java.lang.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(java.lang.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(java.lang.Class clazz)
clazz
- implementing the FeatureTypeDefinitionsManager interfacepublic static void registerDefaultFeatureTypeDefinitionsManager(java.lang.Class clazz)
clazz
- implementing the FeatureTypeDefinitionsManager interface