org.exolab.jmscts.jms.message
Class BasicMessageFactory

java.lang.Object
  |
  +--org.exolab.jmscts.core.MessageFactory
        |
        +--org.exolab.jmscts.jms.message.BasicMessageFactory

public class BasicMessageFactory
extends MessageFactory

Helper class for creating, and optionally populating messages

Version:
$Revision: 1.1 $ $Date: 2004/01/03 04:09:17 $
Author:
Tim Anderson
See Also:
MessagePopulator

Constructor Summary
BasicMessageFactory()
          Construct a new BasicMessageFactory
BasicMessageFactory(MessagePopulator populator)
          Construct a new BasicMessageFactory
 
Method Summary
protected  javax.jms.BytesMessage createBytesMessage()
          Create a new BytesMessage
protected  javax.jms.MapMessage createMapMessage()
          Create a new MapMessage
protected  javax.jms.Message createMessage()
          Create a new Message
protected  javax.jms.ObjectMessage createObjectMessage()
          Create a new ObjectMessage
protected  javax.jms.StreamMessage createStreamMessage()
          Create a new StreamMessage
protected  javax.jms.TextMessage createTextMessage()
          Create a new TextMessage
 
Methods inherited from class org.exolab.jmscts.core.MessageFactory
create, populate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicMessageFactory

public BasicMessageFactory()
Construct a new BasicMessageFactory

BasicMessageFactory

public BasicMessageFactory(MessagePopulator populator)
Construct a new BasicMessageFactory
Parameters:
populator - the message populator, or null, if messages aren't to be populated
Method Detail

createBytesMessage

protected javax.jms.BytesMessage createBytesMessage()
Create a new BytesMessage
Overrides:
createBytesMessage in class MessageFactory
Returns:
the new message

createMapMessage

protected javax.jms.MapMessage createMapMessage()
Create a new MapMessage
Overrides:
createMapMessage in class MessageFactory
Returns:
the new message

createMessage

protected javax.jms.Message createMessage()
Create a new Message
Overrides:
createMessage in class MessageFactory
Returns:
the new message

createObjectMessage

protected javax.jms.ObjectMessage createObjectMessage()
Create a new ObjectMessage
Overrides:
createObjectMessage in class MessageFactory
Returns:
the new message

createStreamMessage

protected javax.jms.StreamMessage createStreamMessage()
Create a new StreamMessage
Overrides:
createStreamMessage in class MessageFactory
Returns:
the new message

createTextMessage

protected javax.jms.TextMessage createTextMessage()
Create a new TextMessage
Overrides:
createTextMessage in class MessageFactory
Returns:
the new message


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