Class SourceCreatingTransformer

java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.transformer.AbstractTransformer
org.springframework.integration.transformer.AbstractPayloadTransformer<Object,Source>
org.springframework.integration.xml.transformer.SourceCreatingTransformer
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.integration.context.ExpressionCapable, org.springframework.integration.support.context.NamedComponent, org.springframework.integration.transformer.GenericTransformer<org.springframework.messaging.Message<?>,org.springframework.messaging.Message<?>>, org.springframework.integration.transformer.Transformer

public class SourceCreatingTransformer extends org.springframework.integration.transformer.AbstractPayloadTransformer<Object,Source>
Transforms the payload to a Source using a SourceFactory. Defaults to using a DomSourceFactory if an alternative is not provided.
  • Field Summary

    Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport

    EXPRESSION_PARSER, logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class org.springframework.integration.transformer.AbstractPayloadTransformer

    doTransform

    Methods inherited from class org.springframework.integration.transformer.AbstractTransformer

    transform

    Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport

    afterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getComponentType, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, onInit, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SourceCreatingTransformer

      public SourceCreatingTransformer()
    • SourceCreatingTransformer

      public SourceCreatingTransformer(SourceFactory sourceFactory)
  • Method Details

    • transformPayload

      public Source transformPayload(Object payload)
      Specified by:
      transformPayload in class org.springframework.integration.transformer.AbstractPayloadTransformer<Object,Source>