org.springframework.integration.xml.source
Class StringSourceFactory

java.lang.Object
  extended by org.springframework.integration.xml.source.StringSourceFactory
All Implemented Interfaces:
SourceFactory

public class StringSourceFactory
extends java.lang.Object
implements SourceFactory

SourceFactory implementation which supports creation of a StringSource from either a Document or String payload

Author:
Jonas Partner

Field Summary
private  javax.xml.transform.TransformerFactory transformerFactory
           
 
Constructor Summary
StringSourceFactory()
           
StringSourceFactory(javax.xml.transform.TransformerFactory transformerFactory)
           
 
Method Summary
 javax.xml.transform.Source createSource(java.lang.Object payload)
          Create appropriate Source instance for payload
protected  org.springframework.xml.transform.StringSource createStringSourceForDocument(org.w3c.dom.Document doc)
           
protected  javax.xml.transform.Transformer getTransformer()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

transformerFactory

private final javax.xml.transform.TransformerFactory transformerFactory
Constructor Detail

StringSourceFactory

public StringSourceFactory()

StringSourceFactory

public StringSourceFactory(javax.xml.transform.TransformerFactory transformerFactory)
Method Detail

createSource

public javax.xml.transform.Source createSource(java.lang.Object payload)
Description copied from interface: SourceFactory
Create appropriate Source instance for payload

Specified by:
createSource in interface SourceFactory
Returns:

createStringSourceForDocument

protected org.springframework.xml.transform.StringSource createStringSourceForDocument(org.w3c.dom.Document doc)

getTransformer

protected javax.xml.transform.Transformer getTransformer()