Class ExpressionEvaluatingMessageSource<T>
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<T>
org.springframework.integration.endpoint.ExpressionEvaluatingMessageSource<T>
- Type Parameters:
T- the expected payload type.
- All Implemented Interfaces:
Aware, BeanFactoryAware, BeanNameAware, DisposableBean, InitializingBean, ExpressionCapable, MessageSource<T>, IntegrationPattern, NamedComponent, IntegrationInboundManagement, IntegrationManagement
public class ExpressionEvaluatingMessageSource<T>
extends AbstractMessageSource<T>
implements ExpressionCapable
- Since:
- 2.0
- Author:
- Mark Fisher, Gary Russell
-
Nested Class Summary
Nested classes/interfaces inherited from interface IntegrationManagement
IntegrationManagement.ManagementOverrides -
Field Summary
Fields inherited from class AbstractExpressionEvaluator
EXPRESSION_PARSER, loggerFields inherited from interface IntegrationManagement
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME -
Constructor Summary
ConstructorsConstructorDescriptionExpressionEvaluatingMessageSource(Expression expression, Class<T> expectedType) -
Method Summary
Modifier and TypeMethodDescription@Nullable TSubclasses must implement this method.Return the primary SpEL expression if this component is expression-based.Methods inherited from class AbstractMessageSource
buildMessage, destroy, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeMethods inherited from class AbstractExpressionEvaluator
afterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, onInit, setBeanFactory, setConversionService, setSimpleEvaluationContextMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IntegrationManagement
getThisAs, isObserved, registerObservationRegistryMethods inherited from interface MessageSource
getIntegrationPatternTypeMethods inherited from interface NamedComponent
getBeanName
-
Constructor Details
-
ExpressionEvaluatingMessageSource
-
-
Method Details
-
getComponentType
- Specified by:
getComponentTypein interfaceNamedComponent
-
doReceive
Description copied from class:AbstractMessageSourceSubclasses must implement this method. Typically, the returned value will be thepayloadof type T, but the returned value may also be aMessageinstance whose payload is of type T; also can beAbstractIntegrationMessageBuilderwhich is used for additional headers population.- Specified by:
doReceivein classAbstractMessageSource<T>- Returns:
- The value returned.
-
getExpression
Description copied from interface:ExpressionCapableReturn the primary SpEL expression if this component is expression-based.- Specified by:
getExpressionin interfaceExpressionCapable- Returns:
- the expression as a String.
-