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 Resources based on the pattern specified.EXPRESSION_PARSER, logger| 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) |
getComponentName, getManagedName, getManagedType, getMessageCount, getMessageCountLong, isCountsEnabled, isLoggingEnabled, receive, reset, setBeanName, setCountsEnabled, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeevaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionServicepublic 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.ApplicationContextAwarepublic java.lang.String getComponentType()
getComponentType in interface NamedComponentpublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanafterPropertiesSet in class AbstractExpressionEvaluatorjava.lang.Exceptionprotected org.springframework.core.io.Resource[] doReceive()
AbstractMessageSourcedoReceive in class AbstractMessageSource<org.springframework.core.io.Resource[]>