public class MethodInvokingMessageSource extends AbstractMessageSource<Object> implements 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 Object |
doReceive()
Subclasses must implement this method.
|
void |
setMethod(Method method) |
void |
setMethodName(String methodName) |
void |
setObject(Object object) |
receive, setHeaderExpressions
evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService
public void setObject(Object object)
public void setMethod(Method method)
public void setMethodName(String methodName)
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class AbstractExpressionEvaluator
protected Object doReceive()
AbstractMessageSource
doReceive
in class AbstractMessageSource<Object>