com.iplanet.jato.command
Class CommandFactory

java.lang.Object
  |
  +--com.iplanet.jato.command.CommandFactory

public class CommandFactory
extends java.lang.Object

A factory for the instantiation of Command objects.

Since:
JATO/1.2
Version:
JATO/1.2.2 $Id: CommandFactory.java,v 1.6 2002/03/16 03:26:29 todd Exp $
See Also:
Command

Constructor Summary
CommandFactory()
          Default Constructor
 
Method Summary
protected static Command createCommandInstance(java.lang.Class clazz)
          Creates a Command instance.
static Command getCommand(java.lang.Class clazz)
          Creates a Command instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandFactory

public CommandFactory()
Default Constructor
Method Detail

getCommand

public static Command getCommand(java.lang.Class clazz)
Creates a Command instance.
Parameters:
clazz - A Command class.
Returns:
the Command instance.

createCommandInstance

protected static Command createCommandInstance(java.lang.Class clazz)
                                        throws java.lang.ClassCastException,
                                               java.lang.InstantiationException,
                                               java.lang.IllegalAccessException
Creates a Command instance.
Parameters:
clazz - A Command class.
Returns:
the Command instance.
Throws:
java.lang.ClassCastException - Thrown if an the clazz parameter is not a Command type
java.lang.InstantiationException -  
java.lang.IllegalAccessException -