|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnl.toolforge.karma.core.cmd.DefaultCommand
nl.toolforge.karma.core.cmd.CompositeCommand
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 .
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 |
public CompositeCommand(CommandDescriptor commandDescriptor)
Method Detail |
public final void commandStarted(CommandResponseEvent event)
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 CompositeCommand
s.
commandStarted
in interface CommandResponseListener
event
- public final void commandFinished(CommandResponseEvent event)
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 CompositeCommand
s.
commandFinished
in interface CommandResponseListener
event
- public final void messageLogged(CommandResponseEvent event)
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 CompositeCommand
s.
messageLogged
in interface CommandResponseListener
event
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |