org.springframework.integration.adapter.file
Class FileSourceAdapter
java.lang.Object
org.springframework.integration.adapter.AbstractSourceAdapter<T>
org.springframework.integration.adapter.PollingSourceAdapter<java.io.File>
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
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)
|
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 |
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)
setFileNameGenerator
public void setFileNameGenerator(FileNameGenerator fileNameGenerator)
setBackupDirectory
public void setBackupDirectory(java.io.File backupDirectory)