public class ResourceRetrievingMessageSource extends AbstractMessageSource<Resource[]> implements ApplicationContextAware
MessageSource
based on
ResourcePatternResolver
which will attempt to resolve Resource
s based
on the pattern specified.IntegrationManagement.ManagementOverrides
EXPRESSION_PARSER, logger
METER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
Constructor and Description |
---|
ResourceRetrievingMessageSource(String pattern) |
Modifier and Type | Method and Description |
---|---|
protected Resource[] |
doReceive()
Subclasses must implement this method.
|
String |
getComponentType() |
protected void |
onInit() |
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setFilter(CollectionFilter<Resource> filter) |
void |
setPatternResolver(ResourcePatternResolver patternResolver) |
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, setBeanFactory, setConversionService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getIntegrationPatternType
getThisAs
public ResourceRetrievingMessageSource(String pattern)
public void setPatternResolver(ResourcePatternResolver patternResolver)
public void setFilter(CollectionFilter<Resource> filter)
public void setApplicationContext(ApplicationContext applicationContext)
setApplicationContext
in interface ApplicationContextAware
public String getComponentType()
getComponentType
in interface NamedComponent
protected void onInit()
onInit
in class AbstractExpressionEvaluator
protected Resource[] 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<Resource[]>