org.exolab.jmscts.core
Class ChainedMessagePopulator

java.lang.Object
  |
  +--org.exolab.jmscts.core.ChainedMessagePopulator
All Implemented Interfaces:
MessagePopulator, java.io.Serializable

public class ChainedMessagePopulator
extends java.lang.Object
implements MessagePopulator

A helper class for populating messages by invoking a sequence of other message populators.

Version:
$Revision: 1.3 $ $Date: 2004/01/31 13:44:24 $
Author:
Tim Anderson
See Also:
Serialized Form

Constructor Summary
ChainedMessagePopulator(MessagePopulator[] populators)
          Construct an instance with the list of populators to invoke
 
Method Summary
 void populate(javax.jms.Message message)
          Populate a message with data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChainedMessagePopulator

public ChainedMessagePopulator(MessagePopulator[] populators)
Construct an instance with the list of populators to invoke
Parameters:
populators - the message populator
Method Detail

populate

public void populate(javax.jms.Message message)
              throws java.lang.Exception
Populate a message with data. This method delegates population to each populator in the order they were supplied at construction.
Specified by:
populate in interface MessagePopulator
Parameters:
message - the message to populate
Throws:
java.lang.Exception - for any error


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.