deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.feature.persistence
Class FeatureStoreManager

java.lang.Object
  extended by org.deegree.feature.persistence.FeatureStoreManager

public class FeatureStoreManager
extends Object

Entry point for creating FeatureStore instances from XML configuration documents or XML elements (JAXB objects) and for retrieving global FeatureStore instances by id.

Version:
$Revision: 22361 $, $Date: 2010-02-03 12:52:38 +0100 (Mi, 03 Feb 2010) $
Author:
Markus Schneider, last edited by: $Author: aschmitz $

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

FeatureStoreManager

public FeatureStoreManager()
Method Detail

get

public static FeatureStore get(String id)
Returns the global FeatureStore instance with the specified identifier.

Parameters:
id - identifier of the store
Returns:
the corresponding FeatureStore instance or null if no such instance has been created

create

public static FeatureStore create(URL configURL)
                           throws FeatureStoreException
Returns an initialized FeatureStore instance from the FeatureStore configuration document.

If the configuration specifies an identifier, the instance is also registered as global FeatureStore.

Parameters:
configURL - URL of the configuration document, must not be null
Returns:
corresponding FeatureStore instance, initialized and ready to be used
Throws:
FeatureStoreException - if the creation fails, e.g. due to a configuration error

create

public static FeatureStore create(FeatureStoreType jaxbConfig,
                                  String baseURL)
                           throws FeatureStoreException
Returns an initialized FeatureStore instance from the given JAXB FeatureStoreType configuration object.

If the configuration specifies an identifier, the instance is also registered as global FeatureStore.

Parameters:
jaxbConfig - configuration object, must not be null
baseURL - base url (used to resolve relative paths in the configuration)
Returns:
corresponding FeatureStore instance, initialized and ready to be used
Throws:
FeatureStoreException - if the creation fails, e.g. due to a configuration error

create

public static FeatureStore create(DirectSQLDataSourceType jaxbConfig)
                           throws FeatureStoreException
Parameters:
jaxbConfig -
Returns:
a corresponding feature store, initialized
Throws:
FeatureStoreException

create

public static FeatureStore create(FeatureStoreReferenceType jaxbConfig)
                           throws FeatureStoreException
Returns an initialized FeatureStore instance from the given JAXB FeatureStoreReferenceType configuration object.

Parameters:
jaxbConfig - configuration object, must not be null
Returns:
corresponding FeatureStore instance, initialized and ready to be used
Throws:
FeatureStoreException - if the creation fails, e.g. due to a configuration error

create

public static ShapeFeatureStore create(ShapefileDataSourceType jaxbConfig,
                                       String baseURL)
                                throws FeatureStoreException
Returns an initialized ShapeFeatureStore instance from the given JAXB ShapefileDataSourceType configuration object.

If the configuration specifies an identifier, the instance is also registered as global FeatureStore.

Parameters:
jaxbConfig - configuration object, must not be null
baseURL - base url (used to resolve relative paths in the configuration)
Returns:
corresponding FeatureStore instance, initialized and ready to be used
Throws:
FeatureStoreException - if the creation fails, e.g. due to a configuration error

create

public static MemoryFeatureStore create(MemoryFeatureStoreType jaxbConfig,
                                        String baseURL)
                                 throws FeatureStoreException
Returns an initialized MemoryFeatureStore instance from the given JAXB ShapefileDataSourceType configuration object.

If the configuration specifies an identifier, the instance is also registered as global FeatureStore.

Parameters:
jaxbConfig - configuration object, must not be null
baseURL - base url (used to resolve relative paths in the configuration)
Returns:
corresponding FeatureStore instance, initialized and ready to be used
Throws:
FeatureStoreException - if the creation fails, e.g. due to a configuration error

create

public static PostGISFeatureStore create(PostGISFeatureStoreType jaxbConfig,
                                         String baseURL)
                                  throws FeatureStoreException
Returns an initialized PostGISFeatureStore instance from the given JAXB PostGISFeatureStoreType configuration object.

If the configuration specifies an identifier, the instance is also registered as global FeatureStore.

Parameters:
jaxbConfig - configuration object, must not be null
baseURL - base url (used to resolve relative paths in the configuration)
Returns:
corresponding FeatureStore instance, initialized and ready to be used
Throws:
FeatureStoreException - if the creation fails, e.g. due to a configuration error

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>