org.springframework.integration.file.entries
Class FileEntryNamer

java.lang.Object
  extended by org.springframework.integration.file.entries.FileEntryNamer
All Implemented Interfaces:
EntryNamer<java.io.File>

public class FileEntryNamer
extends java.lang.Object
implements EntryNamer<java.io.File>

File implementation of the EntryNamer strategy.

This part feels a little over-engineered...


Constructor Summary
FileEntryNamer()
           
 
Method Summary
 java.lang.String nameOf(java.io.File 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileEntryNamer

public FileEntryNamer()
Method Detail

nameOf

public java.lang.String nameOf(java.io.File entry)
Description copied from interface: EntryNamer
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 ....

Specified by:
nameOf in interface EntryNamer<java.io.File>
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