org.deegree.feature.persistence
Class FeatureStoreManager

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

public class FeatureStoreManager
extends java.lang.Object

Entry point for creating and retrieving FeatureStore providers and instances.

Version:
$Revision: 27762 $, $Date: 2010-11-03 23:41:48 +0100 (Mi, 03. Nov 2010) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
FeatureStoreManager()
           
 
Method Summary
static FeatureStore create(java.net.URL configURL)
          Returns an uninitialized FeatureStore instance that's created from the specified FeatureStore configuration document.
static void destroy()
           
static FeatureStore get(java.lang.String id)
          Returns the FeatureStore instance with the specified identifier.
static java.util.Collection<FeatureStore> getAll()
          Returns all active FeatureStores.
static java.util.Collection<java.lang.String> getFeatureStoreIds()
           
static java.util.Map<java.lang.String,FeatureStoreProvider> getProviders()
          Returns all available FeatureStore providers.
static void init(java.io.File fsDir)
          Initializes the FeatureStoreManager by loading all feature store configurations from the given directory.
static void registerAndInit(FeatureStore fs, java.lang.String id)
           
 
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

getFeatureStoreIds

public static java.util.Collection<java.lang.String> getFeatureStoreIds()

getProviders

public static java.util.Map<java.lang.String,FeatureStoreProvider> getProviders()
Returns all available FeatureStore providers.

Returns:
all available providers, keys: config namespace, value: provider instance

init

public static void init(java.io.File fsDir)
Initializes the FeatureStoreManager by loading all feature store configurations from the given directory.

Parameters:
fsDir -

get

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

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

getAll

public static java.util.Collection<FeatureStore> getAll()
Returns all active FeatureStores.

Returns:
the FeatureStores instance, may be empty but never null

create

public static FeatureStore create(java.net.URL configURL)
                           throws FeatureStoreException
Returns an uninitialized FeatureStore instance that's created from the specified FeatureStore configuration document.

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

registerAndInit

public static void registerAndInit(FeatureStore fs,
                                   java.lang.String id)
                            throws FeatureStoreException
Parameters:
fs -
id -
Throws:
FeatureStoreException

destroy

public static void destroy()


Copyright © 2011. All Rights Reserved.