org.springframework.integration.adapter
Class MethodInvokingSource<T>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MethodInvokingSource
public MethodInvokingSource()
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>