|
|||||||||||
| 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.
| Constructor Summary | |
PropertiesCommandFactory(java.util.Properties properties)
Constructs the CommandFactory using the specified properties. |
|
| Method Summary | |
Command |
createCommand(org.w3c.dom.Element element)
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 |
| 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 CommonUserException,
CommonSystemException
Command that corresponds to the specified
element.
createCommand in interface CommandFactoryelement - The element to map to a corresponding Command
implementation.
CommonSystemException - If there is a system problem preventing the
Command from being created.
CommonUserException - If there is a user problem preventing the
Command from being created.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||