public class ExpressionEvaluatingMessageSource<T> extends AbstractMessageSource<T> implements ExpressionCapable
IntegrationManagement.ManagementOverrides
EXPRESSION_PARSER, logger
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
ExpressionEvaluatingMessageSource(Expression expression,
Class<T> expectedType) |
Modifier and Type | Method and Description |
---|---|
T |
doReceive()
Subclasses must implement this method.
|
String |
getComponentType() |
Expression |
getExpression()
Return the primary SpEL expression if this component is expression-based.
|
buildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedType
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setBeanFactory, setConversionService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIntegrationPatternType
getThisAs
public ExpressionEvaluatingMessageSource(Expression expression, Class<T> expectedType)
public String getComponentType()
getComponentType
in interface NamedComponent
public T doReceive()
AbstractMessageSource
payload
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 Expression getExpression()
ExpressionCapable
getExpression
in interface ExpressionCapable