Regd Event Listeners and Objects to listen to File events
I have a specific requirement wherein, I want to listen to a java.io.File object pointing to a windows directory and keep track of any sub-files and sub-directories. If any new file or directory is created, I want an event object to be fired and captured by an event listener. Are there any classes already provided in the JDK APIs to meet this requirement.
The situation is pretty much like listening to events fired when emails are received on an Exchange Server using Java Mail API MessageListener and MessageEvent.

