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)
CatalogManagergetDriver in interface CatalogManagerprotocol - Catalog protocolpublic ICatalogServiceDriver[] getDrivers()
getDrivers in interface CatalogManagerpublic void register(String name, Class driver)
CatalogManagerregister in interface CatalogManagerdriver - Catalog driver to registerpublic void addRecord(Record record)
CatalogManageraddRecord in interface CatalogManagerrecord - New record to addpublic Record createRecord(URI uri, XMLNode node)
CatalogManagercreateRecord in interface CatalogManageruri - Server URI (used to retrieve the images)node - XML nodepublic void addLayerLoader(String key, Class loader)
addLayerLoader in interface CatalogManagerpublic LayerLoader getLayerLoader(Resource resource) throws IllegalArgumentException, SecurityException, InstantiationException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
getLayerLoader in interface CatalogManagerIllegalArgumentExceptionSecurityExceptionInstantiationExceptionIllegalAccessExceptionInvocationTargetExceptionNoSuchMethodExceptionpublic Map<String,ServerData> getServersPersistence()
CatalogManagergetServersPersistence in interface CatalogManagerpublic void setServersPersistence(Map<String,ServerData> serversPersistence)
CatalogManagersetServersPersistence in interface CatalogManager