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