Package org.vast.sensorML
Class ProcessLoader
java.lang.Object
org.vast.sensorML.ProcessLoader
- All Implemented Interfaces:
IProcessFactory
Implementation of process factory looking up mapping from URI to actual implementation class from an XML mapping file.
- Since:
- Feb 15, 2006
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
Loads the URI to Process Class map using the provided XML file.loadProcess
(String uri) Loads the executable process implementation corresponding to the given URI.static void
reloadMaps
(String libFileUrl) Reloads the URI to Process Class map using the provided XML file completely erases previous table.
-
Constructor Details
-
ProcessLoader
public ProcessLoader()
-
-
Method Details
-
loadProcess
Description copied from interface:IProcessFactory
Loads the executable process implementation corresponding to the given URI.- Specified by:
loadProcess
in interfaceIProcessFactory
- Parameters:
uri
- URI of the method (i.e. the specific process to instantiate)- Returns:
- the newly created process object
- Throws:
ProcessException
- if the process cannot be instantiated (e.g. unknown URI)
-
reloadMaps
Reloads the URI to Process Class map using the provided XML file completely erases previous table.- Parameters:
libFileUrl
- Url to the file containing the mapping definitions- Throws:
SMLException
-
loadMaps
Loads the URI to Process Class map using the provided XML file. Existing entries are replaced only if the replace argument is true.- Parameters:
libFileUrl
- Url to the file containing the mapping definitionsreplace
- If true, existing entries are replaced- Throws:
SMLException
-