com.ibm.commerce.foundation.server.command

Class CommandFactory

  • java.lang.Object
    • com.ibm.commerce.foundation.server.command.CommandFactory


  • public class CommandFactory
    extends java.lang.Object
    This is a factory class that is used to resolve an interfacename to an instance of a WebSphere command based on the configuration
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      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
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getInstance

        public static CommandFactory getInstance()
        Returns the instance of the Command Factory which is configured to create a Command Object depending on input
        Returns:
        The application instance of the Command Factory.
      • createCommand

        public com.ibm.websphere.command.Command createCommand(java.lang.String interfaceName)
        Creates a instance of a command implementation based on the interface name provided. The interface is used as a key to resolve the command implementation.
        Parameters:
        interfaceName - The interface name to resolve the command implementation.
        Returns:
        The command implementation that corresponds to the specified interface.
      • createCommand

        public com.ibm.websphere.command.Command createCommand(CommandKey commandKey)
        Parameters:
        commandKey -
        Returns: