Spring Integration

org.springframework.integration.endpoint
Class MethodInvokingMessageSource

java.lang.Object
  extended by org.springframework.integration.endpoint.MethodInvokingMessageSource
All Implemented Interfaces:
InitializingBean, MessageSource<Object>

public class MethodInvokingMessageSource
extends Object
implements MessageSource<Object>, InitializingBean

A MessageSource implementation that invokes a no-argument method so that its return value may be sent to a channel.

Author:
Mark Fisher

Constructor Summary
MethodInvokingMessageSource()
           
 
Method Summary
 void afterPropertiesSet()
           
 Message<Object> receive()
          Retrieve the next available message from this source.
 void setMethod(Method method)
           
 void setMethodName(String methodName)
           
 void setObject(Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvokingMessageSource

public MethodInvokingMessageSource()
Method Detail

setObject

public void setObject(Object object)

setMethod

public void setMethod(Method method)

setMethodName

public void setMethodName(String methodName)

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface InitializingBean

receive

public Message<Object> receive()
Description copied from interface: MessageSource
Retrieve the next available message from this source. Returns null if no message is available.

Specified by:
receive in interface MessageSource<Object>

Spring Integration

Copyright © 2010. All Rights Reserved.