org.springframework.integration.file.monitors
Interface EventDrivenDirectoryMonitor
- All Known Implementing Classes:
- AbstractEventDrivenFileMonitor, DirectedEventDrivenFileMonitor
public interface EventDrivenDirectoryMonitor
Defines an interface for a component that reacts to file system events
monitor
void monitor(java.io.File directory,
FileAdditionListener fileAdditionListener)
throws java.lang.Exception
- the implementation should know how to publish events on the
FileAdditionListener
for a given #directory
- Parameters:
directory
- the directory to start watching from. Unspecified if this implies recursion or not.fileAdditionListener
- the callback
- Throws:
java.lang.Exception
- if anything should go wrong