public class MethodInvokingMessageSource extends AbstractMessageSource<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 Object |
doReceive()
Subclasses must implement this method.
|
void |
setMethod(Method method) |
void |
setMethodName(String methodName) |
void |
setObject(Object object) |
receive, setHeaderExpressionsevaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, getEvaluationContext, setBeanFactory, setConversionServicepublic void setObject(Object object)
public void setMethod(Method method)
public void setMethodName(String methodName)
public void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractExpressionEvaluatorprotected Object doReceive()
AbstractMessageSourcedoReceive in class AbstractMessageSource<Object>Copyright © 2016. All rights reserved.