|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.io.datastore.DatastoreRegistry
public class DatastoreRegistry
Responsible for the lookup of Datastore instances by their configuration information.
This is necessary to ensure that application schemas which use the same backend and identical
configuration information are served by the same Datastore instance.
| Constructor Summary | |
|---|---|
DatastoreRegistry()
|
|
| Method Summary | |
|---|---|
static void |
deregisterDatastore(DatastoreConfiguration config)
Returns the Datastore instance that serves the given DatastoreConfiguration
from the registry. |
static Datastore |
getDatastore(DatastoreConfiguration config)
Returns the Datastore instance that serves the given DatastoreConfiguration. |
static Class<Datastore> |
getDatastoreClass(String commonName)
Returns the Class of a Datastore identified by the passed name. |
static void |
registerDatastore(Datastore ds)
Registers a new Datastore instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DatastoreRegistry()
| Method Detail |
|---|
public static Class<Datastore> getDatastoreClass(String commonName)
throws IllegalArgumentException
Class of a Datastore identified by the passed name. The mapping
between common names and Datastore classes is stored in the file
org.deegree.io.datastore.datastores.datastore.properties.
commonName -
IllegalArgumentExceptionpublic static Datastore getDatastore(DatastoreConfiguration config)
Datastore instance that serves the given DatastoreConfiguration.
config -
public static void registerDatastore(Datastore ds)
throws DatastoreException
Datastore instance.
ds -
DatastoreException - if Datastore for configuration is already registered
public static void deregisterDatastore(DatastoreConfiguration config)
throws DatastoreException
Datastore instance that serves the given DatastoreConfiguration
from the registry.
config -
DatastoreException - if no Datastore for configuration is registered
|
deegree 2.3 (2010/04/09 10:10 build-4-official) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org