Spring Integration

org.springframework.integration.resource
Class ResourceRetrievingMessageSource

java.lang.Object
  extended by org.springframework.integration.util.AbstractExpressionEvaluator
      extended by org.springframework.integration.endpoint.AbstractMessageSource<org.springframework.core.io.Resource[]>
          extended by 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 Resources based on the pattern specified.

Since:
2.1
Author:
Oleg Zhurakousky, Mark Fisher

Constructor Summary
ResourceRetrievingMessageSource(java.lang.String pattern)
           
 
Method Summary
 void afterPropertiesSet()
           
protected  org.springframework.core.io.Resource[] doReceive()
          Subclasses must implement this method.
 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)
           
 
Methods inherited from class org.springframework.integration.endpoint.AbstractMessageSource
receive, setHeaderExpressions
 
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
 

Constructor Detail

ResourceRetrievingMessageSource

public ResourceRetrievingMessageSource(java.lang.String pattern)
Method Detail

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[]>

Spring Integration