Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Bartel2015-06-04 03:09:26 -0400
committerJan Bartel2015-06-04 03:10:48 -0400
commit30e14fd256222afea70c8b7796551d6946e2c7e9 (patch)
tree9af934b7b13935b6fa9e7cd3e243d65dfd437c33 /jetty-security/src/main/java/org/eclipse
parent6c2780b9cf6ea78fd638135635e2e67b8b9c3336 (diff)
downloadorg.eclipse.jetty.project-30e14fd256222afea70c8b7796551d6946e2c7e9.tar.gz
org.eclipse.jetty.project-30e14fd256222afea70c8b7796551d6946e2c7e9.tar.xz
org.eclipse.jetty.project-30e14fd256222afea70c8b7796551d6946e2c7e9.zip
469241 Make PathWatcher stoppable and restartable
Diffstat (limited to 'jetty-security/src/main/java/org/eclipse')
-rw-r--r--jetty-security/src/main/java/org/eclipse/jetty/security/PropertyUserStore.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/jetty-security/src/main/java/org/eclipse/jetty/security/PropertyUserStore.java b/jetty-security/src/main/java/org/eclipse/jetty/security/PropertyUserStore.java
index b0aff8b2bd..7363748b62 100644
--- a/jetty-security/src/main/java/org/eclipse/jetty/security/PropertyUserStore.java
+++ b/jetty-security/src/main/java/org/eclipse/jetty/security/PropertyUserStore.java
@@ -333,7 +333,7 @@ public class PropertyUserStore extends AbstractLifeCycle implements PathWatcher.
if ( isHotReload() && (_configPath != null) )
{
this.pathWatcher = new PathWatcher();
- this.pathWatcher.addFileWatch(_configPath);
+ this.pathWatcher.watch(_configPath);
this.pathWatcher.addListener(this);
this.pathWatcher.setNotifyExistingOnStart(false);
this.pathWatcher.start();
@@ -363,6 +363,7 @@ public class PropertyUserStore extends AbstractLifeCycle implements PathWatcher.
super.doStop();
if (this.pathWatcher != null)
this.pathWatcher.stop();
+ this.pathWatcher = null;
}
/**

Back to the top