org.deegree.services.wps
Class ProcessManager

java.lang.Object
  extended by org.deegree.commons.config.AbstractBasicResourceManager
      extended by org.deegree.commons.config.AbstractResourceManager<ProcessProvider>
          extended by org.deegree.services.wps.ProcessManager
All Implemented Interfaces:
ExtendedResourceManager<ProcessProvider>, ResourceManager

public class ProcessManager
extends AbstractResourceManager<ProcessProvider>

Manages the available WPSProcess instances and ProcessProviders for the WPService

Version:
$Revision: $, $Date: $
Author:
Alexander Padberg, Markus Schneider, last edited by: $Author: schneider $
See Also:
WPService

Field Summary
 
Fields inherited from class org.deegree.commons.config.AbstractResourceManager
name, nsToProvider
 
Fields inherited from class org.deegree.commons.config.AbstractBasicResourceManager
dir, idToState, workspace
 
Constructor Summary
ProcessManager()
           
 
Method Summary
 Class<? extends ResourceManager>[] getDependencies()
           
 ResourceManagerMetadata<ProcessProvider> getMetadata()
           
 WPSProcess getProcess(CodeType id)
          Returns the process with the specified identifier.
 Map<CodeType,WPSProcess> getProcesses()
          Returns all available processes.
 void initMetadata(DeegreeWorkspace workspace)
          Initializes the metadata (can be used to scan for resource providers, important so transitive dependencies work).
 
Methods inherited from class org.deegree.commons.config.AbstractResourceManager
activate, add, create, deactivate, get, getProvider, processResourceConfig, remove, remove, shutdown, startup
 
Methods inherited from class org.deegree.commons.config.AbstractBasicResourceManager
createResource, deleteResource, getState, getStates, init
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.commons.config.ResourceManager
createResource, deleteResource, getState, getStates
 

Constructor Detail

ProcessManager

public ProcessManager()
Method Detail

getProcesses

public Map<CodeType,WPSProcess> getProcesses()
Returns all available processes.

Returns:
available process, may be empty, but never null

getProcess

public WPSProcess getProcess(CodeType id)
Returns the process with the specified identifier.

Parameters:
id - identifier of the process, must not be null
Returns:
process with the specified identifier or null if no such process exists

getDependencies

public Class<? extends ResourceManager>[] getDependencies()
Returns:
an empty array if there are no dependencies

getMetadata

public ResourceManagerMetadata<ProcessProvider> getMetadata()
Returns:
a metadata object for use in GUIs, may be null

initMetadata

public void initMetadata(DeegreeWorkspace workspace)
Description copied from interface: ExtendedResourceManager
Initializes the metadata (can be used to scan for resource providers, important so transitive dependencies work).



Copyright © 2011. All Rights Reserved.