public class CommandFactory
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
com.ibm.websphere.command.Command |
createCommand(CommandKey commandKey) |
com.ibm.websphere.command.Command |
createCommand(java.lang.String interfaceName)
Creates a instance of a command implementation based on the
interface name provided.
|
static CommandFactory |
getInstance()
Returns the instance of the Command Factory
which is configured to create a Command Object depending on input
|
public static CommandFactory getInstance()
public com.ibm.websphere.command.Command createCommand(java.lang.String interfaceName)
interfaceName
- The interface name to resolve the
command implementation.public com.ibm.websphere.command.Command createCommand(CommandKey commandKey)
commandKey
-