org.votech.ds6.widgets
Class AbstractMessageSource

java.lang.Object
  extended by org.votech.ds6.widgets.AbstractMessageSource
All Implemented Interfaces:
MessageSource

public abstract class AbstractMessageSource
extends java.lang.Object
implements MessageSource

A MessageSource that has some of the optional stuff ready done - it does nothing with a single return value (can override this if you want), and repeatedly calls processReturnValue(PlasticApplication, Object) in the case of multiple return values from a broadcast.

Author:
jdt

Constructor Summary
AbstractMessageSource()
           
 
Method Summary
 void processReturnValue(org.votech.plastic.managers.PlasticApplication sender, java.lang.Object result)
          Perform any post-processing on the message response.
 void processReturnValues(java.util.Map<org.votech.plastic.managers.PlasticApplication,java.lang.Object> results)
          Perform any post-processing on the message response if we broadcast to all.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.votech.ds6.widgets.MessageSource
getMessage
 

Constructor Detail

AbstractMessageSource

public AbstractMessageSource()
Method Detail

processReturnValue

public void processReturnValue(org.votech.plastic.managers.PlasticApplication sender,
                               java.lang.Object result)
Description copied from interface: MessageSource
Perform any post-processing on the message response.

Specified by:
processReturnValue in interface MessageSource
Parameters:
sender - who sent us this
result - the result!

processReturnValues

public void processReturnValues(java.util.Map<org.votech.plastic.managers.PlasticApplication,java.lang.Object> results)
Description copied from interface: MessageSource
Perform any post-processing on the message response if we broadcast to all.

Specified by:
processReturnValues in interface MessageSource


Copyright © 2006 VOTech. All Rights Reserved.