org.springframework.integration.adapter
Class MethodInvokingSource<T>

java.lang.Object
  extended by org.springframework.integration.adapter.MethodInvokingSource<T>
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, PollableSource<java.lang.Object>

public class MethodInvokingSource<T>
extends java.lang.Object
implements PollableSource<java.lang.Object>, org.springframework.beans.factory.InitializingBean

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

Author:
Mark Fisher

Constructor Summary
MethodInvokingSource()
           
 
Method Summary
 void afterPropertiesSet()
           
 java.util.Collection<java.lang.Object> poll(int limit)
           
 void setMethod(java.lang.String method)
           
 void setObject(T object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodInvokingSource

public MethodInvokingSource()
Method Detail

setObject

public void setObject(T object)

setMethod

public void setMethod(java.lang.String method)

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean

poll

public java.util.Collection<java.lang.Object> poll(int limit)
Specified by:
poll in interface PollableSource<java.lang.Object>