3.5 File Adapters

The FileSource requires the directory as a constructor argument:

public FileSource(File directory)

It can then be connected to a MessageChannel when referenced from a SourceEndpoint.

The FileTarget constructor also requires the 'directory' argument. The target adapter also accepts an implementation of the FileNameGenerator strategy that defines the following method:

String generateFileName(Message message)