Package org.hotswap.agent.watch.nio
Class WatcherNIO2
- java.lang.Object
-
- org.hotswap.agent.watch.nio.AbstractNIO2Watcher
-
- org.hotswap.agent.watch.nio.WatcherNIO2
-
- All Implemented Interfaces:
Watcher
public class WatcherNIO2 extends AbstractNIO2Watcher
NIO2 watcher implementation. Java 7 (NIO2) watch a directory (or tree) for changes to files. By http://docs.oracle.com/javase/tutorial/essential/io/examples/WatchDir.java- Author:
- Jiri Bubnik, alpapad@gmail.com
-
-
Field Summary
-
Fields inherited from class org.hotswap.agent.watch.nio.AbstractNIO2Watcher
classLoaderListeners, dispatcher, keys, KINDS, LOGGER, watcher
-
-
Constructor Summary
Constructors Constructor Description WatcherNIO2()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidregisterAll(Path dir)-
Methods inherited from class org.hotswap.agent.watch.nio.AbstractNIO2Watcher
addDirectory, addEventListener, addEventListener, closeClassLoader, run, stop
-
-
-
-
Constructor Detail
-
WatcherNIO2
public WatcherNIO2() throws IOException- Throws:
IOException
-
-
Method Detail
-
registerAll
protected void registerAll(Path dir) throws IOException
- Specified by:
registerAllin classAbstractNIO2Watcher- Throws:
IOException
-
-