|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.feature.persistence.FeatureStoreManager
public class FeatureStoreManager
Entry point for creating FeatureStore
instances from XML configuration documents or XML elements (JAXB
objects) and for retrieving global FeatureStore
instances by id.
Constructor Summary | |
---|---|
FeatureStoreManager()
|
Method Summary | |
---|---|
static FeatureStore |
create(DirectSQLDataSourceType jaxbConfig)
|
static FeatureStore |
create(FeatureStoreReferenceType jaxbConfig)
Returns an initialized FeatureStore instance from the given JAXB FeatureStoreReferenceType
configuration object. |
static FeatureStore |
create(FeatureStoreType jaxbConfig,
String baseURL)
Returns an initialized FeatureStore instance from the given JAXB FeatureStoreType configuration
object. |
static MemoryFeatureStore |
create(MemoryFeatureStoreType jaxbConfig,
String baseURL)
Returns an initialized MemoryFeatureStore instance from the given JAXB ShapefileDataSourceType
configuration object. |
static PostGISFeatureStore |
create(PostGISFeatureStoreType jaxbConfig,
String baseURL)
Returns an initialized PostGISFeatureStore instance from the given JAXB PostGISFeatureStoreType
configuration object. |
static ShapeFeatureStore |
create(ShapefileDataSourceType jaxbConfig,
String baseURL)
Returns an initialized ShapeFeatureStore instance from the given JAXB ShapefileDataSourceType
configuration object. |
static FeatureStore |
create(URL configURL)
Returns an initialized FeatureStore instance from the FeatureStore configuration document. |
static FeatureStore |
get(String id)
Returns the global FeatureStore instance with the specified identifier. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureStoreManager()
Method Detail |
---|
public static FeatureStore get(String id)
FeatureStore
instance with the specified identifier.
id
- identifier of the store
FeatureStore
instance or null if no such instance has been createdpublic static FeatureStore create(URL configURL) throws FeatureStoreException
FeatureStore
instance from the FeatureStore configuration document.
If the configuration specifies an identifier, the instance is also registered as global FeatureStore
.
configURL
- URL of the configuration document, must not be null
FeatureStore
instance, initialized and ready to be used
FeatureStoreException
- if the creation fails, e.g. due to a configuration errorpublic static FeatureStore create(FeatureStoreType jaxbConfig, String baseURL) throws FeatureStoreException
FeatureStore
instance from the given JAXB FeatureStoreType
configuration
object.
If the configuration specifies an identifier, the instance is also registered as global FeatureStore
.
jaxbConfig
- configuration object, must not be null
baseURL
- base url (used to resolve relative paths in the configuration)
FeatureStore
instance, initialized and ready to be used
FeatureStoreException
- if the creation fails, e.g. due to a configuration errorpublic static FeatureStore create(DirectSQLDataSourceType jaxbConfig) throws FeatureStoreException
jaxbConfig
-
FeatureStoreException
public static FeatureStore create(FeatureStoreReferenceType jaxbConfig) throws FeatureStoreException
FeatureStore
instance from the given JAXB FeatureStoreReferenceType
configuration object.
jaxbConfig
- configuration object, must not be null
FeatureStore
instance, initialized and ready to be used
FeatureStoreException
- if the creation fails, e.g. due to a configuration errorpublic static ShapeFeatureStore create(ShapefileDataSourceType jaxbConfig, String baseURL) throws FeatureStoreException
ShapeFeatureStore
instance from the given JAXB ShapefileDataSourceType
configuration object.
If the configuration specifies an identifier, the instance is also registered as global FeatureStore
.
jaxbConfig
- configuration object, must not be null
baseURL
- base url (used to resolve relative paths in the configuration)
FeatureStore
instance, initialized and ready to be used
FeatureStoreException
- if the creation fails, e.g. due to a configuration errorpublic static MemoryFeatureStore create(MemoryFeatureStoreType jaxbConfig, String baseURL) throws FeatureStoreException
MemoryFeatureStore
instance from the given JAXB ShapefileDataSourceType
configuration object.
If the configuration specifies an identifier, the instance is also registered as global FeatureStore
.
jaxbConfig
- configuration object, must not be null
baseURL
- base url (used to resolve relative paths in the configuration)
FeatureStore
instance, initialized and ready to be used
FeatureStoreException
- if the creation fails, e.g. due to a configuration errorpublic static PostGISFeatureStore create(PostGISFeatureStoreType jaxbConfig, String baseURL) throws FeatureStoreException
PostGISFeatureStore
instance from the given JAXB PostGISFeatureStoreType
configuration object.
If the configuration specifies an identifier, the instance is also registered as global FeatureStore
.
jaxbConfig
- configuration object, must not be null
baseURL
- base url (used to resolve relative paths in the configuration)
FeatureStore
instance, initialized and ready to be used
FeatureStoreException
- if the creation fails, e.g. due to a configuration error
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |