Class ResourceRetrievingMessageSource
java.lang.Object
org.springframework.integration.util.AbstractExpressionEvaluator
org.springframework.integration.endpoint.AbstractMessageSource<Resource[]>
org.springframework.integration.resource.ResourceRetrievingMessageSource
- All Implemented Interfaces:
- Aware,- BeanFactoryAware,- BeanNameAware,- DisposableBean,- InitializingBean,- ApplicationContextAware,- MessageSource<Resource[]>,- IntegrationPattern,- NamedComponent,- IntegrationInboundManagement,- IntegrationManagement
public class ResourceRetrievingMessageSource
extends AbstractMessageSource<Resource[]>
implements ApplicationContextAware
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, Gary Russell, Artem Bilan
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.springframework.integration.support.management.IntegrationManagementIntegrationManagement.ManagementOverrides
- 
Field SummaryFields inherited from class org.springframework.integration.util.AbstractExpressionEvaluatorEXPRESSION_PARSER, loggerFields inherited from interface org.springframework.integration.support.management.IntegrationManagementMETER_PREFIX, RECEIVE_COUNTER_NAME, SEND_TIMER_NAME
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected Resource[]Subclasses must implement this method.protected voidonInit()voidsetApplicationContext(ApplicationContext applicationContext) voidsetFilter(CollectionFilter<Resource> filter) voidsetPatternResolver(ResourcePatternResolver patternResolver) Methods inherited from class org.springframework.integration.endpoint.AbstractMessageSourcebuildMessage, destroy, getBeanName, getComponentName, getManagedName, getManagedType, getOverrides, isLoggingEnabled, receive, registerMetricsCaptor, setBeanName, setHeaderExpressions, setLoggingEnabled, setManagedName, setManagedTypeMethods inherited from class org.springframework.integration.util.AbstractExpressionEvaluatorafterPropertiesSet, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, evaluateExpression, getBeanFactory, getEvaluationContext, getEvaluationContext, getMessageBuilderFactory, setBeanFactory, setConversionService, setSimpleEvaluationContextMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.integration.support.management.IntegrationManagementgetThisAs, isObserved, registerObservationRegistryMethods inherited from interface org.springframework.integration.core.MessageSourcegetIntegrationPatternType
- 
Constructor Details- 
ResourceRetrievingMessageSource
 
- 
- 
Method Details- 
setPatternResolver
- 
setFilter
- 
setApplicationContext- Specified by:
- setApplicationContextin interface- ApplicationContextAware
 
- 
getComponentType- Specified by:
- getComponentTypein interface- NamedComponent
 
- 
onInitprotected void onInit()- Overrides:
- onInitin class- AbstractExpressionEvaluator
 
- 
doReceiveDescription copied from class:AbstractMessageSourceSubclasses must implement this method. Typically, the returned value will be thepayloadof type T, but the returned value may also be aMessageinstance whose payload is of type T; also can beAbstractIntegrationMessageBuilderwhich is used for additional headers population.- Specified by:
- doReceivein class- AbstractMessageSource<Resource[]>
- Returns:
- The value returned.
 
 
-