Search in sources :

Example 6 with App

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);
    }
}
Also used : App(org.eclipse.jetty.deploy.App)

Example 7 with 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);
    }
}
Also used : App(org.eclipse.jetty.deploy.App)

Aggregations

App (org.eclipse.jetty.deploy.App)7 IOException (java.io.IOException)1 MalformedURLException (java.net.MalformedURLException)1 UnknownHostException (java.net.UnknownHostException)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 WebAppContext (org.eclipse.jetty.webapp.WebAppContext)1 SAXException (org.xml.sax.SAXException)1