Commit 0adef1d2 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Load and unload custom servlets.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1345 b35dd754-fafc-0310-a699-88a17e54d16e
parent 911a8387
......@@ -177,6 +177,12 @@ public class PluginManager {
if (webXML.exists()) {
PluginServlet.registerServlets(this, plugin, webXML);
}
// Load any custom-defined servlets.
File customWebXML = new File(pluginDir, "web" + File.separator + "WEB-INF" +
File.separator + "web-custom.xml");
if (customWebXML.exists()) {
PluginServlet.registerServlets(this, plugin, customWebXML);
}
// If there a <adminconsole> section defined, register it.
Element adminElement = (Element)pluginXML.selectSingleNode("/plugin/adminconsole");
if (adminElement != null) {
......@@ -234,6 +240,11 @@ public class PluginManager {
AdminConsole.removeModel(pluginName);
PluginServlet.unregisterServlets(webXML);
}
File customWebXML = new File(pluginDirectory, "web" + File.separator + "WEB-INF" +
File.separator + "web-custom.xml");
if (customWebXML.exists()) {
PluginServlet.unregisterServlets(customWebXML);
}
PluginClassLoader classLoader = classloaders.get(plugin);
plugin.destroyPlugin();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment