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
- Author:
- Josh Long
monitor
void monitor(File directory,
FileAdditionListener fileAdditionListener)
throws 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:
Exception
- if anything should go wrong
Copyright © 2010. All Rights Reserved.