Spring Integration

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

Method Summary
 void monitor(File directory, FileAdditionListener fileAdditionListener)
          the implementation should know how to publish events on the FileAdditionListener for a given #directory
 

Method Detail

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

Spring Integration

Copyright © 2010. All Rights Reserved.