public class MethodInvokingMessageSource extends AbstractMessageSource<java.lang.Object> implements org.springframework.beans.factory.InitializingBean
MessageSource
implementation that invokes a no-argument method so
that its return value may be sent to a channel.Constructor and Description |
---|
MethodInvokingMessageSource() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected java.lang.Object |
doReceive()
Subclasses must implement this method.
|
void |
setMethod(java.lang.reflect.Method method) |
void |
setMethodName(java.lang.String methodName) |
void |
setObject(java.lang.Object object) |
receive, setHeaderExpressions
evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, getEvaluationContext, setBeanFactory, setConversionService
public void setObject(java.lang.Object object)
public void setMethod(java.lang.reflect.Method method)
public void setMethodName(java.lang.String methodName)
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class AbstractExpressionEvaluator
protected java.lang.Object doReceive()
AbstractMessageSource
doReceive
in class AbstractMessageSource<java.lang.Object>