Commit e67479e8 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Provide static access to Jetty instance.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@961 b35dd754-fafc-0310-a699-88a17e54d16e
parent aac8cf9f
......@@ -28,7 +28,7 @@ import org.mortbay.log.*;
*/
public class AdminConsolePlugin implements Plugin {
private Server jetty = null;
private static Server jetty = null;
private String port = null;
/**
......@@ -71,7 +71,6 @@ public class AdminConsolePlugin implements Plugin {
jetty = new Server();
// Configure HTTP socket listener
port = JiveGlobals.getXMLProperty("adminConsole.port", "9090");
jetty.addListener(port);
......@@ -103,4 +102,13 @@ public class AdminConsolePlugin implements Plugin {
Log.error(LocaleUtils.getLocalizedString("admin.error"), e);
}
}
/**
* Returns the Jetty instance started by this plugin.
*
* @return the Jetty server instance.
*/
public static Server getJettyServer() {
return jetty;
}
}
\ No newline at end of file
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