org.springframework.integration.file.monitors
Class MessageSendingFileAdditionListener

java.lang.Object
  extended by org.springframework.integration.context.IntegrationObjectSupport
      extended by 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


Field Summary
 
Fields inherited from class org.springframework.integration.context.IntegrationObjectSupport
logger
 
Constructor Summary
MessageSendingFileAdditionListener()
           
 
Method Summary
 void fileAdded(java.io.File f)
          a callback method that's invoked when a new File is detected.
protected  void onInit()
          Subclasses may implement this for initialization logic.
 void setChannel(MessageChannel channel)
           
 
Methods inherited from class org.springframework.integration.context.IntegrationObjectSupport
afterPropertiesSet, getBeanFactory, getComponentName, getComponentType, getConversionService, getTaskScheduler, setBeanFactory, setBeanName, setComponentName, setConversionService, setTaskScheduler, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageSendingFileAdditionListener

public MessageSendingFileAdditionListener()
Method Detail

setChannel

public void setChannel(MessageChannel channel)

onInit

protected void onInit()
               throws java.lang.Exception
Description copied from class: IntegrationObjectSupport
Subclasses may implement this for initialization logic.

Overrides:
onInit in class IntegrationObjectSupport
Throws:
java.lang.Exception

fileAdded

public void fileAdded(java.io.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