Class TransformerEndpointSpec
java.lang.Object
org.springframework.integration.dsl.IntegrationComponentSpec<S,reactor.util.function.Tuple2<F,H>>
  
org.springframework.integration.dsl.EndpointSpec<S,ConsumerEndpointFactoryBean,H>
  
org.springframework.integration.dsl.ConsumerEndpointSpec<TransformerEndpointSpec,MessageTransformingHandler>
 
org.springframework.integration.dsl.TransformerEndpointSpec
- All Implemented Interfaces:
- DisposableBean,- FactoryBean<reactor.util.function.Tuple2<ConsumerEndpointFactoryBean,,- MessageTransformingHandler>> - InitializingBean,- Lifecycle,- Phased,- SmartLifecycle,- ComponentsRegistration
public class TransformerEndpointSpec
extends ConsumerEndpointSpec<TransformerEndpointSpec,MessageTransformingHandler> 
A 
ConsumerEndpointSpec for a MessageTransformingHandler options.
 One of the expression(String), ref(Object), refName(String),
 processor(MessageProcessorSpec) or transformer(GenericTransformer) must be provided.- Since:
- 6.2
- Author:
- Artem Bilan
- 
Field SummaryFields inherited from class org.springframework.integration.dsl.ConsumerEndpointSpecadviceChainFields inherited from class org.springframework.integration.dsl.EndpointSpeccomponentsToRegister, endpointFactoryBean, handlerFields inherited from class org.springframework.integration.dsl.IntegrationComponentSpeclogger, PARSER, targetFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTEFields inherited from interface org.springframework.context.SmartLifecycleDEFAULT_PHASE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionexpectedType(Class<P> expectedType) Set aGenericTransformerinput argument type.expression(String expression) Provide an expression to use anExpressionEvaluatingTransformerfor the target handler.expression(Expression expression) Provide an expression to use anExpressionEvaluatingTransformerfor the target handler.Provide a service method name to call.processor(MessageProcessorSpec<?> processor) Provide aMessageProcessorSpecas a factory forMethodInvokingTransformerdelegate.Provide a service to use aMethodInvokingTransformerfor the target handler.Provide a bean name to use aMethodInvokingTransformer(based onBeanNameMessageProcessor) for the target handler.<P,T> TransformerEndpointSpec transformer(GenericTransformer<P, T> transformer) Provide aGenericTransformeras a direct delegate forMessageTransformingHandler.Methods inherited from class org.springframework.integration.dsl.ConsumerEndpointSpecadvice, async, autoStartup, customizeMonoReply, doGet, handleMessageAdvice, notPropagatedHeaders, order, phase, poller, reactive, reactive, requiresReply, role, sendTimeout, taskScheduler, transactional, transactional, transactional, transactional, transactionalMethods inherited from class org.springframework.integration.dsl.EndpointSpecassertHandler, id, obtainInputChannelFromFlow, obtainInputChannelFromFlow, poller, pollerMethods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec_this, afterPropertiesSet, destroy, getId, getObject, getObjectType, getPhase, isAutoStartup, isRunning, start, stop, stopMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.FactoryBeanisSingleton
- 
Constructor Details- 
TransformerEndpointSpecprotected TransformerEndpointSpec()
 
- 
- 
Method Details- 
expressionProvide an expression to use anExpressionEvaluatingTransformerfor the target handler.- Parameters:
- expression- the SpEL expression to use.
- Returns:
- the TransformerSpec
 
- 
expressionProvide an expression to use anExpressionEvaluatingTransformerfor the target handler.- Parameters:
- expression- the SpEL expression to use.
- Returns:
- the TransformerSpec
 
- 
refProvide a service to use aMethodInvokingTransformerfor the target handler.- Parameters:
- ref- the service to call as a transformer POJO.
- Returns:
- the TransformerSpec
 
- 
refNameProvide a bean name to use aMethodInvokingTransformer(based onBeanNameMessageProcessor) for the target handler.- Parameters:
- refName- the bean name for service to call as a transformer POJO.
- Returns:
- the TransformerSpec
 
- 
methodProvide a service method name to call. Optional. Use only together withref(Object)orrefName(String).- Parameters:
- method- the service method name to call.
- Returns:
- the TransformerSpec
 
- 
transformerProvide aGenericTransformeras a direct delegate forMessageTransformingHandler.- Type Parameters:
- P- the input type.
- T- the output type.
- Parameters:
- transformer- the- GenericTransformerinstance to use.
- Returns:
- the TransformerSpec
 
- 
expectedTypeSet aGenericTransformerinput argument type. Can be aMessage. Ignored for all other transformers, buttransformer(GenericTransformer).- Type Parameters:
- P- the type ot expect.
- Parameters:
- expectedType- the- GenericTransformerinput argument type.
- Returns:
- the spec.
 
- 
processorProvide aMessageProcessorSpecas a factory forMethodInvokingTransformerdelegate.- Parameters:
- processor- the- MessageProcessorSpecto use.
- Returns:
- the TransformerSpec
 
- 
getComponentsToRegister- Specified by:
- getComponentsToRegisterin interface- ComponentsRegistration
- Overrides:
- getComponentsToRegisterin class- EndpointSpec<TransformerEndpointSpec,- ConsumerEndpointFactoryBean, - MessageTransformingHandler> 
 
 
-