|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--uk.org.ogsadai.activity.xmldb.commands.PropertiesCommandFactory
A CommandFactory that creates Command
instances based on a properties file where the keys are command
element names and the values command implementation class names.
| Field Summary | |
private static java.lang.String |
COPYRIGHT_NOTICE
Copyright statement |
private java.util.Properties |
mCommands
Maps command element names to their implementation class. |
| Constructor Summary | |
PropertiesCommandFactory(java.util.Properties properties)
Constructs the CommandFactory using the specified
properties. |
|
| Method Summary | |
Command |
createCommand(org.w3c.dom.Element element)
Creates and instantiates the Command that corresponds to
the specified element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private static final java.lang.String COPYRIGHT_NOTICE
private java.util.Properties mCommands
| Constructor Detail |
public PropertiesCommandFactory(java.util.Properties properties)
CommandFactory using the specified
properties.
properties - A Properties object where each key
represents a command element name and its corresponding
value the class name for the command implementation.| Method Detail |
public Command createCommand(org.w3c.dom.Element element)
throws XMLDBCommandCreationException,
XMLDBUnsupportedCommandException,
XMLDBCommandSpecificationException,
XMLDBCommandExecutionException
CommandFactoryCommand that corresponds to
the specified element.
createCommand in interface CommandFactoryelement - The element to map to a corresponding Command
implementation.
Command
XMLDBCommandExecutionException - If there is an internal problem
XMLDBCommandSpecificationException - If there is a problem parsing element or
initialising the command due to incorrect values in the
command provided by a client.
XMLDBCommandCreationException - If there is a problem when creating the
Command.
XMLDBUnsupportedCommandException - If the Command is not known to the factory.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||