org.springframework.integration.file.monitors
Class MessageSendingFileAdditionListener
java.lang.Object
org.springframework.integration.context.IntegrationObjectSupport
org.springframework.integration.file.monitors.MessageSendingFileAdditionListener
- All Implemented Interfaces:
- BeanFactoryAware, BeanNameAware, InitializingBean, NamedComponent, FileAdditionListener
public class MessageSendingFileAdditionListener
- extends IntegrationObjectSupport
- implements FileAdditionListener
Supports propagating a Message
on the receipt of a new File
- Author:
- Josh Long
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport |
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getRequiredMetadataPersister, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString |
MessageSendingFileAdditionListener
public MessageSendingFileAdditionListener()
setChannel
public void setChannel(MessageChannel channel)
onInit
protected void onInit()
throws Exception
- Description copied from class:
IntegrationObjectSupport
- Subclasses may implement this for initialization logic.
- Overrides:
onInit
in class IntegrationObjectSupport
- Throws:
Exception
setPlatformTransactionManager
public void setPlatformTransactionManager(PlatformTransactionManager platformTransactionManager)
fileAdded
public void fileAdded(File f)
- Description copied from interface:
FileAdditionListener
- a callback method that's invoked when a new
File
is detected.
- Specified by:
fileAdded
in interface FileAdditionListener
- Parameters:
f
- the File
that was detected
Copyright © 2010. All Rights Reserved.