public MarshallingMessageConverter(Marshaller marshaller)
Construct a new MarshallingMessageConverter with the given Marshaller set.
If the given Marshaller also implements the Unmarshaller interface,
it is used for both marshalling and unmarshalling. Otherwise, an exception is thrown.
Note that all Marshaller implementations in Spring also implement the
Unmarshaller interface, so that you can safely use this constructor.
Parameters:
marshaller - object used as marshaller and unmarshaller
Throws:
java.lang.IllegalArgumentException - when marshaller does not implement the
Unmarshaller interface as well
Invoked by the containing BeanFactory after it has set all bean properties
and satisfied BeanFactoryAware, ApplicationContextAware etc.
This method allows the bean instance to perform validation of its overall
configuration and final initialization when all bean properties have been set.
This implementation marshals the given object to a TextMessage or
BytesMessage. The desired message type can be defined by setting
the "marshalTo" property.