org.deegree.commons.config
Interface ExtendedResourceManager<T extends Resource>

All Superinterfaces:
ResourceManager
All Known Implementing Classes:
AbstractResourceManager, CoverageBuilderManager, FeatureStoreManager, LayerStoreManager, MetadataStoreManager, ProcessManager, RemoteOWSManager, RemoteOWSStoreManager, StyleStoreManager, ThemeManager, WebServicesConfiguration

public interface ExtendedResourceManager<T extends Resource>
extends ResourceManager

Version:
$Revision: 31511 $, $Date: 2011-08-16 18:07:27 +0200 (Tue, 16 Aug 2011) $
Author:
Andreas Schmitz, last edited by: $Author: aschmitz $

Method Summary
 T create(String id, URL configUrl)
          Is used to obtain a resource instance from a configuration url and register it.
 T get(String id)
          Is used to obtain a resource instance from an id.
 ResourceManagerMetadata<T> getMetadata()
           
 void initMetadata(DeegreeWorkspace workspace)
          Initializes the metadata (can be used to scan for resource providers, important so transitive dependencies work).
 
Methods inherited from interface org.deegree.commons.config.ResourceManager
activate, createResource, deactivate, deleteResource, getDependencies, getState, getStates, shutdown, startup
 

Method Detail

initMetadata

void initMetadata(DeegreeWorkspace workspace)
Initializes the metadata (can be used to scan for resource providers, important so transitive dependencies work).

Parameters:
workspace -

getMetadata

ResourceManagerMetadata<T> getMetadata()
Specified by:
getMetadata in interface ResourceManager
Returns:
a metadata object for use in GUIs, may be null

create

T create(String id,
         URL configUrl)
                          throws ResourceInitException
Is used to obtain a resource instance from a configuration url and register it. The creation is usually delegated to an appropriate ResourceProvider.

Parameters:
id - the desired id of the new resource
configUrl - the configuration url of the new resource
Returns:
the new resource instance
Throws:
ResourceInitException - if an error occurred while creating the resource

get

T get(String id)
Is used to obtain a resource instance from an id.

Parameters:
id -
Returns:
null, if no such resource has been registered


Copyright © 2011. All Rights Reserved.