The Watch Service API in JDK7 allows you to watch a directory for changes to files and receive notification events when a file is added  deleted or modified You no longer need to poll the file system for changes which is inefficient and doesn't scale well