Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'jetty-deploy/src/main')
-rw-r--r--jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ScanningAppProvider.java34
1 files changed, 30 insertions, 4 deletions
diff --git a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ScanningAppProvider.java b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ScanningAppProvider.java
index 37f7c6f6b8..09cce7cf14 100644
--- a/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ScanningAppProvider.java
+++ b/jetty-deploy/src/main/java/org/eclipse/jetty/deploy/providers/ScanningAppProvider.java
@@ -176,12 +176,25 @@ public abstract class ScanningAppProvider extends AbstractLifeCycle implements A
}
/* ------------------------------------------------------------ */
+ @Deprecated
public Resource getMonitoredDir()
{
return _monitoredDir;
}
/* ------------------------------------------------------------ */
+ public Resource getMonitoredDirResource()
+ {
+ return _monitoredDir;
+ }
+
+ /* ------------------------------------------------------------ */
+ public String getMonitoredDirName()
+ {
+ return _monitoredDir.toString();
+ }
+
+ /* ------------------------------------------------------------ */
public int getScanInterval()
{
return _scanInterval;
@@ -200,22 +213,35 @@ public abstract class ScanningAppProvider extends AbstractLifeCycle implements A
}
/* ------------------------------------------------------------ */
+ @Deprecated
+ public void setMonitoredDir(Resource dir)
+ {
+ setMonitoredDirResource(dir);
+ }
- public void setMonitoredDir(Resource contextsDir)
+ /* ------------------------------------------------------------ */
+ @Deprecated
+ public void setMonitoredDir(String dir)
+ {
+ setMonitoredDirName(dir);
+ }
+
+ /* ------------------------------------------------------------ */
+ public void setMonitoredDirResource(Resource contextsDir)
{
_monitoredDir = contextsDir;
}
-
+
/* ------------------------------------------------------------ */
/**
* @param dir
* Directory to scan for context descriptors or war files
*/
- public void setMonitoredDir(String dir)
+ public void setMonitoredDirName(String dir)
{
try
{
- _monitoredDir = Resource.newResource(dir);
+ setMonitoredDirResource(Resource.newResource(dir));
}
catch (Exception e)
{

Back to the top