org.deegree.metadata.persistence
Class MetadataStoreManager

java.lang.Object
  extended by org.deegree.metadata.persistence.MetadataStoreManager

public class MetadataStoreManager
extends java.lang.Object

Entry point for creating MetadataStore providers and instances.

Version:
$Revision: 27963 $, $Date: 2010-11-10 08:23:32 +0100 (Mi, 10. Nov 2010) $
Author:
Steffen Thomas, last edited by: $Author: sthomas $

Method Summary
static MetadataStore create(java.net.URL configURL)
          Returns an initialized MetadataStore instance from the RecordStore configuration document.
static void destroy()
           
static MetadataStore get(java.lang.String id)
          Returns the global MetadataStore instance with the specified identifier.
static java.util.Map<java.lang.String,MetadataStore> getAll()
          Returns all MetadataStore instances.
static java.util.Map<java.lang.String,MetadataStoreProvider> getProviders()
          Returns all available MetadataStoreManager providers.
static void init(java.io.File rsDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProviders

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

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

get

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

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

getAll

public static java.util.Map<java.lang.String,MetadataStore> getAll()
Returns all MetadataStore instances.

Returns:
the corresponding MetadataStore instances, may be empty, but never null

create

public static MetadataStore create(java.net.URL configURL)
                            throws MetadataStoreException
Returns an initialized MetadataStore instance from the RecordStore configuration document.

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

init

public static void init(java.io.File rsDir)
Parameters:
rsDir -

destroy

public static void destroy()


Copyright © 2011. All Rights Reserved.