use of org.eclipse.jetty.deploy.App in project jetty.project by eclipse.
the class ScanningAppProvider method fileAdded.
/* ------------------------------------------------------------ */
protected void fileAdded(String filename) throws Exception {
if (LOG.isDebugEnabled())
LOG.debug("added {}", filename);
App app = ScanningAppProvider.this.createApp(filename);
if (app != null) {
_appMap.put(filename, app);
_deploymentManager.addApp(app);
}
}
use of org.eclipse.jetty.deploy.App in project jetty.project by eclipse.
the class ScanningAppProvider method fileChanged.
/* ------------------------------------------------------------ */
protected void fileChanged(String filename) throws Exception {
if (LOG.isDebugEnabled())
LOG.debug("changed {}", filename);
App app = _appMap.remove(filename);
if (app != null) {
_deploymentManager.removeApp(app);
}
app = ScanningAppProvider.this.createApp(filename);
if (app != null) {
_appMap.put(filename, app);
_deploymentManager.addApp(app);
}
}
Aggregations