public class HotSwapFilesModificationsWatcherDefault extends Object implements HotSwapFilesModificationsWatcher
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
HotSwapFilesModificationsWatcherDefault() |
public HotSwapFilesModificationsWatcherDefault()
public void serverStartedSuccessfully()
serverStartedSuccessfully in interface ServerStartedListenerprotected Map<String,Set<HotSwapFilesModificationsListener>> getListenersByDirAbsolutePaths()
protected WatchService getFileModificationsWatcherService()
protected Map<WatchKey,Set<HotSwapFilesModificationsListener>> getListenersByWatchKey()
protected WatchService createFileModificationsWatcherService()
public void registerListener(HotSwapFilesModificationsListener listener)
HotSwapFilesModificationsWatcherMore than one listeners can be added for the same files!
registerListener in interface HotSwapFilesModificationsWatcherpublic void removeAllListeners()
HotSwapFilesModificationsWatcherremoveAllListeners in interface HotSwapFilesModificationsWatcherpublic void removeListener(HotSwapFilesModificationsListener listener)
HotSwapFilesModificationsWatcherremoveListener in interface HotSwapFilesModificationsWatcherprotected void startFilesModificationsWatcher()
protected boolean modifiedFileMatchs(File modifiedFile, HotSwapFilesModificationsListener listener)
public void stopWatching()
HotSwapFilesModificationsWatcherstopWatching in interface HotSwapFilesModificationsWatcherCopyright © 2018. All rights reserved.