org.springframework.integration.resource
Class ResourceRetrievingMessageSource
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<org.springframework.core.io.Resource[]>
org.springframework.integration.resource.ResourceRetrievingMessageSource
- All Implemented Interfaces:
- org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, MessageSource<org.springframework.core.io.Resource[]>
public class ResourceRetrievingMessageSource
- extends AbstractMessageSource<org.springframework.core.io.Resource[]>
- implements org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
Implementation of MessageSource
based on ResourcePatternResolver
which will
attempt to resolve Resource
s based on the pattern specified.
- Since:
- 2.1
- Author:
- Oleg Zhurakousky, Mark Fisher
Methods inherited from class org.springframework.integration.util.AbstractExpressionEvaluator |
evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getEvaluationContext, setBeanFactory, setBeanResolver, setConversionService |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceRetrievingMessageSource
public ResourceRetrievingMessageSource(java.lang.String pattern)
setPatternResolver
public void setPatternResolver(org.springframework.core.io.support.ResourcePatternResolver patternResolver)
setFilter
public void setFilter(CollectionFilter<org.springframework.core.io.Resource> filter)
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
doReceive
protected org.springframework.core.io.Resource[] doReceive()
- Description copied from class:
AbstractMessageSource
- Subclasses must implement this method. Typically the returned value will be the payload of
type T, but the returned value may also be a Message instance whose payload is of type T.
- Specified by:
doReceive
in class AbstractMessageSource<org.springframework.core.io.Resource[]>