public class ExpressionEvaluatingMessageSource<T> extends AbstractMessageSource<T> implements ExpressionCapable
IntegrationManagement.ManagementOverridesEXPRESSION_PARSER, loggerMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME| Constructor and Description |
|---|
ExpressionEvaluatingMessageSource(org.springframework.expression.Expression expression,
java.lang.Class<T> expectedType) |
| Modifier and Type | Method and Description |
|---|---|
T |
doReceive()
Subclasses must implement this method.
|
java.lang.String |
getComponentType() |
org.springframework.expression.Expression |
getExpression()
Return the primary SpEL expression if this component is expression-based.
|
buildMessage, getComponentName, getManagedName, getManagedType, getMessageCount, getMessageCountLong, getOverrides, isCountsEnabled, isLoggingEnabled, receive, registerMetricsCaptor, reset, setBeanName, setCountsEnabled, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeafterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionServiceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetCounterpublic ExpressionEvaluatingMessageSource(org.springframework.expression.Expression expression,
java.lang.Class<T> expectedType)
public java.lang.String getComponentType()
getComponentType in interface NamedComponentpublic T doReceive()
AbstractMessageSourcepayload of
type T, but the returned value may also be a Message instance whose payload is of type T;
also can be AbstractIntegrationMessageBuilder which is used for additional headers population.doReceive in class AbstractMessageSource<T>public org.springframework.expression.Expression getExpression()
ExpressionCapablegetExpression in interface ExpressionCapable