public interface Watcher
| Modifier and Type | Method and Description |
|---|---|
void |
addEventListener(ClassLoader classLoader,
URI pathPrefix,
WatchEventListener listener)
Register listeners on an event.
|
void |
addEventListener(ClassLoader classLoader,
URL pathPrefix,
WatchEventListener listener)
Register listeners on an event.
|
void |
closeClassLoader(ClassLoader classLoader)
Remove all listeners registered with a classloader
|
void |
run()
Run the watcher agent thread.
|
void |
stop()
Stop the watcher agent thread.
|
void addEventListener(ClassLoader classLoader, URI pathPrefix, WatchEventListener listener)
classLoader - the classloader to which this path is associated. May be null, but then this
listener will never be disassociated (even if application is undeployed)pathPrefix - where to listenlistener - the listenervoid addEventListener(ClassLoader classLoader, URL pathPrefix, WatchEventListener listener)
classLoader - the classloader to which this path is associated. May be null, but then this
listener will never be disassociated (even if application is undeployed)pathPrefix - where to listenlistener - the listenervoid closeClassLoader(ClassLoader classLoader)
classLoader - classloadr to closevoid run()
void stop()
Copyright © 2018. All rights reserved.