org.springframework.integration.resource
Class ResourceRetrievingMessageSource
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<Resource[]>
org.springframework.integration.resource.ResourceRetrievingMessageSource
- All Implemented Interfaces:
- BeanFactoryAware, InitializingBean, ApplicationContextAware, MessageSource<Resource[]>
public class ResourceRetrievingMessageSource
- extends AbstractMessageSource<Resource[]>
- implements ApplicationContextAware, InitializingBean
Implementation of MessageSource
based on ResourcePatternResolver
which will
attempt to resolve Resource
s based on the pattern specified.
- Since:
- 2.1
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(ResourcePatternResolver patternResolver)
setFilter
public void setFilter(CollectionFilter<Resource> filter)
setApplicationContext
public void setApplicationContext(ApplicationContext applicationContext)
- Specified by:
setApplicationContext
in interface ApplicationContextAware
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet
in interface InitializingBean
doReceive
protected 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<Resource[]>