uk.org.ogsadai.client.databrowser.commands
Class CommandFactory

java.lang.Object
  |
  +--uk.org.ogsadai.client.databrowser.commands.CommandFactory

public class CommandFactory
extends java.lang.Object

Factory used to create Command objects.

Author:
OGSA-DAI team

Field Summary
private static java.lang.String COPYRIGHT_NOTICE
           
 
Constructor Summary
CommandFactory()
           
 
Method Summary
static Command create(java.lang.String name, DBQueryController controller)
          Creates a command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT_NOTICE

private static final java.lang.String COPYRIGHT_NOTICE
See Also:
Constant Field Values
Constructor Detail

CommandFactory

public CommandFactory()
Method Detail

create

public static Command create(java.lang.String name,
                             DBQueryController controller)
Creates a command.

Parameters:
name - Name of the type command that is to be created.
controller - Controller use when executing the command.
Returns:
The newly created command object.