org.springframework.integration.file.entries
Class FileEntryNamer
java.lang.Object
org.springframework.integration.file.entries.FileEntryNamer
- All Implemented Interfaces:
- EntryNamer<File>
public class FileEntryNamer
- extends Object
- implements EntryNamer<File>
File
implementation of the EntryNamer
strategy.
This part feels a little over-engineered...
- Author:
- Josh Long
Method Summary |
String |
nameOf(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 |
FileEntryNamer
public FileEntryNamer()
nameOf
public String nameOf(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<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
Copyright © 2010. All Rights Reserved.