com.atlassian.bamboo.v2.build.queue
Class BambooMessageConverter

java.lang.Object
  extended by com.atlassian.bamboo.v2.build.queue.BambooMessageConverter
All Implemented Interfaces:
org.springframework.jms.support.converter.MessageConverter
Direct Known Subclasses:
XStreamMessageConverter

public class BambooMessageConverter
extends Object
implements org.springframework.jms.support.converter.MessageConverter

A simple message converter that by default uses XStream to serialize/deserialize messages and allows use of custom converters.


Constructor Summary
BambooMessageConverter()
           
BambooMessageConverter(XStreamFactory xStreamFactory)
           
 
Method Summary
 Object fromMessage(javax.jms.Message message)
           
 javax.jms.Message toMessage(Object object, javax.jms.Session session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BambooMessageConverter

public BambooMessageConverter()

BambooMessageConverter

public BambooMessageConverter(@NotNull
                              XStreamFactory xStreamFactory)
Method Detail

toMessage

public javax.jms.Message toMessage(@NotNull
                                   Object object,
                                   @NotNull
                                   javax.jms.Session session)
                            throws javax.jms.JMSException,
                                   org.springframework.jms.support.converter.MessageConversionException
Specified by:
toMessage in interface org.springframework.jms.support.converter.MessageConverter
Throws:
javax.jms.JMSException
org.springframework.jms.support.converter.MessageConversionException

fromMessage

public Object fromMessage(javax.jms.Message message)
                   throws javax.jms.JMSException,
                          org.springframework.jms.support.converter.MessageConversionException
Specified by:
fromMessage in interface org.springframework.jms.support.converter.MessageConverter
Throws:
javax.jms.JMSException
org.springframework.jms.support.converter.MessageConversionException


Copyright © 2015 Atlassian Software Systems Pty Ltd. All rights reserved.