public class ResourceRetrievingMessageSource extends AbstractMessageSource<Resource[]> implements ApplicationContextAware, InitializingBean
MessageSource
based on ResourcePatternResolver
which will
attempt to resolve Resource
s based on the pattern specified.Constructor and Description |
---|
ResourceRetrievingMessageSource(String pattern) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected Resource[] |
doReceive()
Subclasses must implement this method.
|
void |
setApplicationContext(ApplicationContext applicationContext) |
void |
setFilter(CollectionFilter<Resource> filter) |
void |
setPatternResolver(ResourcePatternResolver patternResolver) |
receive, setHeaderExpressions
evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService
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 void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class AbstractExpressionEvaluator
protected Resource[] doReceive()
AbstractMessageSource
doReceive
in class AbstractMessageSource<Resource[]>