Commit fed3a6c5 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Do not load monitoring plugin if enterprise plugin is detected

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/branches/openfire_3_5_1@10196 b35dd754-fafc-0310-a699-88a17e54d16e
parent 22bda9fe
......@@ -82,6 +82,13 @@ public class MonitoringPlugin implements Plugin {
public void initializePlugin(PluginManager manager, File pluginDirectory) {
System.out.println("Starting Monitoring Plugin");
// Check that the enterprise plugin is not being used
if (manager.getPlugin("enterprise") != null) {
// Stop loading this plugin since the enterprise is being used
System.out.println("Enterprise plugin found. Stopping Monitoring Plugin");
throw new IllegalStateException("This plugin cannot run next to the Enterprise plugin");
}
shuttingDown = false;
// Make sure that the enteprise folder exists under the home directory
......
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