nl.toolforge.karma.core.cmd
Class CompositeCommand

java.lang.Object
  extended bynl.toolforge.karma.core.cmd.DefaultCommand
      extended bynl.toolforge.karma.core.cmd.CompositeCommand
All Implemented Interfaces:
Command, CommandResponseListener, java.util.EventListener
Direct Known Subclasses:
CreateRelease, UpdateAllModulesCommand

public abstract class CompositeCommand
extends DefaultCommand
implements CommandResponseListener

A CompositeCommand is suited for executing multiple commands and at the same time, act as a CommandResponseListener. A good example is a command traversing all modules in a manifest and calling some command on each of them.

When a CompositeCommand is registered as a listener to other commands, the composite command is responsible .

Version:
$Id: CompositeCommand.java,v 1.11 2004/11/02 23:57:05 asmedes Exp $
Author:
D.A. Smedes

Constructor Summary
CompositeCommand(CommandDescriptor commandDescriptor)
           
 
Method Summary
 void commandFinished(CommandResponseEvent event)
          Implemenattion of CommandResponseListener.commandFinished(nl.toolforge.karma.core.cmd.event.CommandResponseEvent).
 void commandStarted(CommandResponseEvent event)
          Implemenattion of CommandResponseListener.commandStarted(nl.toolforge.karma.core.cmd.event.CommandResponseEvent).
 void messageLogged(CommandResponseEvent event)
          Implemenattion of CommandResponseListener.messageLogged(nl.toolforge.karma.core.cmd.event.CommandResponseEvent).
 
Methods inherited from class nl.toolforge.karma.core.cmd.DefaultCommand
cleanUp, deregisterCommandResponseListener, getAlias, getCommandLine, getContext, getDescription, getFrontendMessages, getHelp, getName, getResponseListener, getWorkingContext, registerCommandResponseListener, setCommandLine, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface nl.toolforge.karma.core.cmd.Command
execute, getCommandResponse
 

Constructor Detail

CompositeCommand

public CompositeCommand(CommandDescriptor commandDescriptor)
Method Detail

commandStarted

public final void commandStarted(CommandResponseEvent event)
Implemenattion of CommandResponseListener.commandStarted(nl.toolforge.karma.core.cmd.event.CommandResponseEvent). Made final because in Karma R1.0 we don't use this feature that much for CompositeCommands.

Specified by:
commandStarted in interface CommandResponseListener
Parameters:
event -

commandFinished

public final void commandFinished(CommandResponseEvent event)
Implemenattion of CommandResponseListener.commandFinished(nl.toolforge.karma.core.cmd.event.CommandResponseEvent). Made final because in Karma R1.0 we don't use this feature that much for CompositeCommands.

Specified by:
commandFinished in interface CommandResponseListener
Parameters:
event -

messageLogged

public final void messageLogged(CommandResponseEvent event)
Implemenattion of CommandResponseListener.messageLogged(nl.toolforge.karma.core.cmd.event.CommandResponseEvent). Made final because in Karma R1.0 we don't use this feature that much for CompositeCommands.

Specified by:
messageLogged in interface CommandResponseListener
Parameters:
event -


Copyright © 2002-2004 Toolforge. All Rights Reserved.