Commit 58daebad authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Create PluginManager before loading and starting modules. JM-887

git-svn-id: http://svn.igniterealtime.org/svn/repos/wildfire/branches@5905 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5ba9f95f
......@@ -199,10 +199,8 @@ public class XMPPServer {
* @return true if the given address matches a component service JID.
*/
public boolean matchesComponent(JID jid) {
if (jid != null) {
return !name.equals(jid.getDomain()) && componentManager.getComponent(jid) != null;
}
return false;
return jid != null && !name.equals(jid.getDomain()) &&
componentManager.getComponent(jid) != null;
}
/**
......@@ -364,6 +362,10 @@ public class XMPPServer {
try {
initialize();
// Create PluginManager now (but don't start it) so that modules may use it
File pluginDir = new File(wildfireHome, "plugins");
pluginManager = new PluginManager(pluginDir);
// If the server has already been setup then we can start all the server's modules
if (!setupMode) {
verifyDataSource();
......@@ -381,8 +383,6 @@ public class XMPPServer {
ServerTrafficCounter.initStatistics();
// Load plugins (when in setup mode only the admin console will be loaded)
File pluginDir = new File(wildfireHome, "plugins");
pluginManager = new PluginManager(pluginDir);
pluginManager.start();
// Log that the server has been started
......
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