public class DefaultCatalogManager extends Object implements CatalogManager
Constructor and Description |
---|
DefaultCatalogManager() |
Modifier and Type | Method and Description |
---|---|
void |
addLayerLoader(String key,
Class loader) |
void |
addRecord(Record record)
Adds a new record
|
Record |
createRecord(URI uri,
XMLNode node)
Try to identify the XML format and return a record
|
ICatalogServiceDriver |
getDriver(String protocol)
It is used to retrieve a driver that supports a concrete
protocol
|
ICatalogServiceDriver[] |
getDrivers() |
LayerLoader |
getLayerLoader(Resource resource) |
Map<String,ServerData> |
getServersPersistence()
gets Map object to persist servers list
|
void |
register(String name,
Class driver)
This method is used to register a new catalog driver
that manage a concrete protocol
|
void |
setServersPersistence(Map<String,ServerData> serversPersistence)
sets Map object to persist servers list
|
public ICatalogServiceDriver getDriver(String protocol)
CatalogManager
getDriver
in interface CatalogManager
protocol
- Catalog protocolpublic ICatalogServiceDriver[] getDrivers()
getDrivers
in interface CatalogManager
public void register(String name, Class driver)
CatalogManager
register
in interface CatalogManager
driver
- Catalog driver to registerpublic void addRecord(Record record)
CatalogManager
addRecord
in interface CatalogManager
record
- New record to addpublic Record createRecord(URI uri, XMLNode node)
CatalogManager
createRecord
in interface CatalogManager
uri
- Server URI (used to retrieve the images)node
- XML nodepublic void addLayerLoader(String key, Class loader)
addLayerLoader
in interface CatalogManager
public LayerLoader getLayerLoader(Resource resource) throws IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
getLayerLoader
in interface CatalogManager
IllegalArgumentException
SecurityException
InstantiationException
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public Map<String,ServerData> getServersPersistence()
CatalogManager
getServersPersistence
in interface CatalogManager
public void setServersPersistence(Map<String,ServerData> serversPersistence)
CatalogManager
setServersPersistence
in interface CatalogManager