org.springframework.integration.xml.transformer
Class XmlPayloadUnmarshallingTransfomer

java.lang.Object
  extended by org.springframework.integration.xml.transformer.XmlPayloadUnmarshallingTransfomer
All Implemented Interfaces:
MessageTransformer

public class XmlPayloadUnmarshallingTransfomer
extends java.lang.Object
implements MessageTransformer

An implementation of MessageTransformer that delegates to an OXM Unmarshaller Expects the payload to be of type Source or to have an instance of SourceFactory that can convert to a Source

Author:
Jonas Partner

Field Summary
private  SourceFactory sourceFactory
           
private  org.springframework.oxm.Unmarshaller unmarshaller
           
 
Constructor Summary
XmlPayloadUnmarshallingTransfomer(org.springframework.oxm.Unmarshaller unmarshaller)
           
 
Method Summary
 void setSourceFactory(SourceFactory sourceFactory)
           
 void transform(Message message)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

unmarshaller

private final org.springframework.oxm.Unmarshaller unmarshaller

sourceFactory

private SourceFactory sourceFactory
Constructor Detail

XmlPayloadUnmarshallingTransfomer

public XmlPayloadUnmarshallingTransfomer(org.springframework.oxm.Unmarshaller unmarshaller)
Method Detail

setSourceFactory

public void setSourceFactory(SourceFactory sourceFactory)

transform

public void transform(Message message)
Specified by:
transform in interface MessageTransformer