org.springframework.integration.adapter.file
Class FileSourceAdapter

java.lang.Object
  extended by org.springframework.integration.adapter.AbstractSourceAdapter<T>
      extended by org.springframework.integration.adapter.PollingSourceAdapter<java.io.File>
          extended by org.springframework.integration.adapter.file.FileSourceAdapter
All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean, org.springframework.context.Lifecycle, org.springframework.integration.adapter.SourceAdapter, org.springframework.integration.scheduling.MessagingTaskSchedulerAware

public class FileSourceAdapter
extends org.springframework.integration.adapter.PollingSourceAdapter<java.io.File>

Channel adapter for polling a directory and creating messages from its files.

Author:
Mark Fisher

Field Summary
 
Fields inherited from class org.springframework.integration.adapter.AbstractSourceAdapter
logger
 
Constructor Summary
FileSourceAdapter(java.io.File directory, org.springframework.integration.channel.MessageChannel channel, int period)
           
FileSourceAdapter(java.io.File directory, org.springframework.integration.channel.MessageChannel channel, int period, boolean isTextBased)
           
 
Method Summary
 void setBackupDirectory(java.io.File backupDirectory)
           
 void setFileNameGenerator(FileNameGenerator fileNameGenerator)
           
 
Methods inherited from class org.springframework.integration.adapter.PollingSourceAdapter
getSource, isRunning, processMessages, setInitialDelay, setMaxMessagesPerTask, setMessagingTaskScheduler, setPeriod, start, stop
 
Methods inherited from class org.springframework.integration.adapter.AbstractSourceAdapter
afterPropertiesSet, getChannel, getMessageMapper, initialize, isInitialized, sendToChannel, setChannel, setMessageMapper, setSendTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSourceAdapter

public FileSourceAdapter(java.io.File directory,
                         org.springframework.integration.channel.MessageChannel channel,
                         int period)

FileSourceAdapter

public FileSourceAdapter(java.io.File directory,
                         org.springframework.integration.channel.MessageChannel channel,
                         int period,
                         boolean isTextBased)
Method Detail

setFileNameGenerator

public void setFileNameGenerator(FileNameGenerator fileNameGenerator)

setBackupDirectory

public void setBackupDirectory(java.io.File backupDirectory)