|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.lang.Class<Datastore> |
getDatastoreClass(java.lang.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 java.lang.Class<Datastore> getDatastoreClass(java.lang.String commonName) throws java.lang.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
-
java.lang.IllegalArgumentException
public 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 registeredpublic 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.5 (2011/06/29 09:44 build-8-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