org.springframework.integration.file.entries
Interface EntryNamer<T>

Type Parameters:
T - the type of entry (there's an implementation for FTP, SFTP, and plain-old java.io.Files)
All Known Implementing Classes:
FileEntryNamer, FtpFileEntryNamer, SftpEntryNamer

public interface EntryNamer<T>

Responsible for coercing a String identification out of the T entry.


Method Summary
 java.lang.String nameOf(T entry)
          This is the one place I couldn't spackle over the interface differences between an FTPFile (FTP adapter), File (File adapter), and LsEntry (SFTP adapter) with generics alone.
 

Method Detail

nameOf

java.lang.String nameOf(T entry)
This is the one place I couldn't spackle over the interface differences between an FTPFile (FTP adapter), File (File adapter), and LsEntry (SFTP adapter) with generics alone. So we have a typed strategy implementation for accessing a property ....

Parameters:
entry - the entry in a file system listing
Returns:
the String name that might be used to reference that entry or to do regular expression checks against