uk.org.ogsadai.activity.xmldb.commands
Interface CommandFactory
- All Known Implementing Classes:
- PropertiesCommandFactory
- public interface CommandFactory
A CommandFactory
creates Command
instances based on the supplied command Element
.
- Author:
- The OGSA-DAI Project Team
Method Summary |
Command |
createCommand(org.w3c.dom.Element element)
Creates and instantiates the Command that corresponds to the specified element. |
createCommand
public Command createCommand(org.w3c.dom.Element element)
throws XMLDBCommandCreationException,
XMLDBUnsupportedCommandException,
XMLDBCommandSpecificationException,
XMLDBCommandExecutionException
-
Creates and instantiates the
Command
that corresponds to the specified element.
-
- Parameters:
element
- The element to map to a corresponding Command
implementation.
- Returns:
- the newly created
Command
- Throws:
XMLDBCommandCreationException
- If there is a problem when creating the Command
.
XMLDBUnsupportedCommandException
- If the Command
is not known to the factory.
XMLDBCommandSpecificationException
- If there is a problem parsing element
or initialising the command due to incorrect values in the command provided by a client.
XMLDBCommandExecutionException
- If there is an internal problem