org.exolab.jmscts.core
Class PropertyPopulator

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

public class PropertyPopulator
extends java.lang.Object
implements MessagePopulator

A message populator that populates properties using a list of Property instances

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

Constructor Summary
PropertyPopulator(java.util.Map properties)
          Create an instance of this class, with a map of properties to populate messages with
PropertyPopulator(Property[] properties)
          Create an instance of this class, with the list of properties to populate messages with
 
Method Summary
 void populate(javax.jms.Message message)
          Populate the message with the properties passed at construction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyPopulator

public PropertyPopulator(Property[] properties)
Create an instance of this class, with the list of properties to populate messages with
Parameters:
properties - the list of properties to populate messages with

PropertyPopulator

public PropertyPopulator(java.util.Map properties)
Create an instance of this class, with a map of properties to populate messages with
Parameters:
properties - a map of properties to populate messages with
Method Detail

populate

public void populate(javax.jms.Message message)
              throws java.lang.Exception
Populate the message with the properties passed 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.