Table of Contents

Class CommandFactory

Namespace
BOOSE
Assembly
BOOSE.dll
public class CommandFactory : ICommandFactory
Inheritance
CommandFactory
Implements
Inherited Members

Methods

MakeCommand(string)

Make a Command object from the String passed.

To create additional commands create a Factory that extends this class and which create a MakeCommand() to make your new commands. Call base.MakeCommand() to make the above commands. Replace the entire Factory buy impelementing the IFactory interface.

public virtual ICommand MakeCommand(string commandType)

Parameters

commandType string

String holding command to be created. Case is unimportant and it is trimmed.

Returns

ICommand

ICommand object if successful

Exceptions

FactoryException

Thrown if no such command.