nl.toolforge.karma.core.cmd
Class CommandResponse

java.lang.Object
  extended bynl.toolforge.karma.core.cmd.CommandResponse
Direct Known Subclasses:
CommandResponseFaker

public class CommandResponse
extends java.lang.Object

A CommandResponse object is used to dispatch CommandResponseEvent events to listeners that are interested in those events. These objects can be fed with n CommandResponseListeners.

Version:
$Id: CommandResponse.java,v 1.28 2004/11/10 23:53:08 asmedes Exp $
Author:
W.M. Oosterom, D.A. Smedes, W.H. Schraal

Constructor Summary
CommandResponse()
          Constructs a command response object.
 
Method Summary
 void addCommandResponseListener(CommandResponseListener responseListener)
          Adds a CommandResponseListener that is interested in events added to this CommandResponse.
 void addEvent(CommandResponseEvent event)
          Dispatches the event to all CommandResponseListeners.
 void removeCommandReponseListener(CommandResponseListener responseListener)
          Removes responseListener from this CommandResponse.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandResponse

public CommandResponse()
Constructs a command response object.

Method Detail

addEvent

public void addEvent(CommandResponseEvent event)
Dispatches the event to all CommandResponseListeners. If no listener has been registered, a warning will be written to the log system.

Parameters:
event - The event that should be dispatched.

addCommandResponseListener

public final void addCommandResponseListener(CommandResponseListener responseListener)
Adds a CommandResponseListener that is interested in events added to this CommandResponse.

Parameters:
responseListener -

removeCommandReponseListener

public final void removeCommandReponseListener(CommandResponseListener responseListener)
Removes responseListener from this CommandResponse.



Copyright © 2002-2004 Toolforge. All Rights Reserved.