info.rolandkrueger.roklib.cli
Interface CommandHandler
public interface CommandHandler
Classes implementing this interface will be passed the user's input to a
console by a ConsoleThread
to process it further. The function
handleCommand(String)
is responsible to extract the
command name and its parameters from the input string to pass these fragments
to a CommandInterpreter
object.
- Author:
- Roland Krueger
- See Also:
ConsoleThread
handleCommand
void handleCommand(String command)
- Gets called by the
ConsoleThread
when the user has entered a
command to the console. Classes implementing this interface are then
responsible for extracting all relevant information from the passed string.
- Parameters:
command
- The string entered by the user. This line usually contains the
command's name together with its arguments.
Copyright © 2007-2011. All Rights Reserved.