public class ResourceRetrievingMessageSource extends AbstractMessageSource<org.springframework.core.io.Resource[]> implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
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(java.lang.String pattern) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected org.springframework.core.io.Resource[] |
doReceive()
Subclasses must implement this method.
|
java.lang.String |
getComponentType() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setFilter(CollectionFilter<org.springframework.core.io.Resource> filter) |
void |
setPatternResolver(org.springframework.core.io.support.ResourcePatternResolver patternResolver) |
buildMessage, getComponentName, getManagedName, getManagedType, getMessageCount, getMessageCountLong, getOverrides, isCountsEnabled, isLoggingEnabled, receive, registerMetricsCaptor, reset, setBeanName, setCountsEnabled, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedType
evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
setCounter
public ResourceRetrievingMessageSource(java.lang.String pattern)
public void setPatternResolver(org.springframework.core.io.support.ResourcePatternResolver patternResolver)
public void setFilter(CollectionFilter<org.springframework.core.io.Resource> filter)
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
public java.lang.String getComponentType()
getComponentType
in interface NamedComponent
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class AbstractExpressionEvaluator
java.lang.Exception
protected org.springframework.core.io.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<org.springframework.core.io.Resource[]>