Class MethodInvokingMessageGroupProcessor
java.lang.Object
org.springframework.integration.aggregator.AbstractAggregatingMessageGroupProcessor
org.springframework.integration.aggregator.MethodInvokingMessageGroupProcessor
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- Lifecycle,- MessageGroupProcessor,- ManageableLifecycle
public class MethodInvokingMessageGroupProcessor
extends AbstractAggregatingMessageGroupProcessor
implements ManageableLifecycle
MessageGroupProcessor that serves as an adapter for the invocation of a POJO method.
- Since:
- 2.0
- Author:
- Iwein Fuld, Mark Fisher, Dave Syer, Gary Russell, Artme Bilan
- 
Field SummaryFields inherited from class org.springframework.integration.aggregator.AbstractAggregatingMessageGroupProcessorlogger
- 
Constructor SummaryConstructorsConstructorDescriptionCreates a wrapper around the object passed in.MethodInvokingMessageGroupProcessor(Object target, Method method) Creates a wrapper around the object passed in.MethodInvokingMessageGroupProcessor(Object target, String methodName) Creates a wrapper around the object passed in.
- 
Method SummaryModifier and TypeMethodDescriptionprotected final ObjectaggregatePayloads(MessageGroup group, Map<String, Object> headers) booleanvoidsetBeanFactory(BeanFactory beanFactory) voidsetConversionService(ConversionService conversionService) voidstart()voidstop()Methods inherited from class org.springframework.integration.aggregator.AbstractAggregatingMessageGroupProcessoraggregateHeaders, getHeadersFunction, getMessageBuilderFactory, processMessageGroup, setHeadersFunction
- 
Constructor Details- 
MethodInvokingMessageGroupProcessorCreates a wrapper around the object passed in. This constructor will look for a method that can process a list of messages.- Parameters:
- target- the object to wrap
 
- 
MethodInvokingMessageGroupProcessorCreates a wrapper around the object passed in. This constructor will look for a named method specifically and fail when it cannot find a method with the given name.- Parameters:
- target- the object to wrap
- methodName- the name of the method to invoke
 
- 
MethodInvokingMessageGroupProcessor
 
- 
- 
Method Details- 
setConversionService
- 
setBeanFactory- Specified by:
- setBeanFactoryin interface- BeanFactoryAware
- Overrides:
- setBeanFactoryin class- AbstractAggregatingMessageGroupProcessor
 
- 
aggregatePayloads- Specified by:
- aggregatePayloadsin class- AbstractAggregatingMessageGroupProcessor
 
- 
startpublic void start()- Specified by:
- startin interface- Lifecycle
- Specified by:
- startin interface- ManageableLifecycle
 
- 
stoppublic void stop()- Specified by:
- stopin interface- Lifecycle
- Specified by:
- stopin interface- ManageableLifecycle
 
- 
isRunningpublic boolean isRunning()- Specified by:
- isRunningin interface- Lifecycle
- Specified by:
- isRunningin interface- ManageableLifecycle
 
 
-