|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.exolab.jmscts.core.MessageFactory
A factory for creating, and optionally populating messages
MessagePopulator
Constructor Summary | |
MessageFactory()
Construct a new MessageFactory |
|
MessageFactory(MessagePopulator populator)
Construct a new MessageFactory |
Method Summary | |
javax.jms.Message |
create(java.lang.Class type)
Create a message of the specified type. |
protected abstract javax.jms.BytesMessage |
createBytesMessage()
Create a new BytesMessage |
protected abstract javax.jms.MapMessage |
createMapMessage()
Create a new MapMessage |
protected abstract javax.jms.Message |
createMessage()
Create a new Message |
protected abstract javax.jms.ObjectMessage |
createObjectMessage()
Create a new ObjectMessage |
protected abstract javax.jms.StreamMessage |
createStreamMessage()
Create a new StreamMessage |
protected abstract javax.jms.TextMessage |
createTextMessage()
Create a new TextMessage |
protected void |
populate(javax.jms.Message message)
Populate a message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MessageFactory()
MessageFactory
public MessageFactory(MessagePopulator populator)
MessageFactory
populator
- the message populator, or null, if messages aren't to
be populatedMethod Detail |
public javax.jms.Message create(java.lang.Class type) throws java.lang.Exception
type
- the JMS message class typejava.lang.Exception
- for any errorprotected abstract javax.jms.BytesMessage createBytesMessage() throws javax.jms.JMSException
BytesMessage
javax.jms.JMSException
- for any errorprotected abstract javax.jms.MapMessage createMapMessage() throws javax.jms.JMSException
MapMessage
javax.jms.JMSException
- for any errorprotected abstract javax.jms.Message createMessage() throws javax.jms.JMSException
Message
javax.jms.JMSException
- for any errorprotected abstract javax.jms.ObjectMessage createObjectMessage() throws javax.jms.JMSException
ObjectMessage
javax.jms.JMSException
- for any errorprotected abstract javax.jms.StreamMessage createStreamMessage() throws javax.jms.JMSException
StreamMessage
javax.jms.JMSException
- for any errorprotected abstract javax.jms.TextMessage createTextMessage() throws javax.jms.JMSException
TextMessage
javax.jms.JMSException
- for any errorprotected void populate(javax.jms.Message message) throws java.lang.Exception
message
- the message to populatejava.lang.Exception
- for any error
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |