Commit 3afb8c1b authored by Pete Matern's avatar Pete Matern Committed by pete

Moved CacheFactory initialization from EnterprisePlugin to XMPPServer. Default...

Moved CacheFactory initialization from EnterprisePlugin to XMPPServer. Default cache strategy is working, bug failing to pick up existing cache configuration from xml properties.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@8163 b35dd754-fafc-0310-a699-88a17e54d16e
parent 56b42816
...@@ -44,6 +44,7 @@ import org.jivesoftware.openfire.update.UpdateManager; ...@@ -44,6 +44,7 @@ import org.jivesoftware.openfire.update.UpdateManager;
import org.jivesoftware.openfire.user.UserManager; import org.jivesoftware.openfire.user.UserManager;
import org.jivesoftware.openfire.vcard.VCardManager; import org.jivesoftware.openfire.vcard.VCardManager;
import org.jivesoftware.util.*; import org.jivesoftware.util.*;
import org.jivesoftware.util.cache.CacheFactory;
import org.xmpp.packet.JID; import org.xmpp.packet.JID;
import java.io.File; import java.io.File;
...@@ -296,6 +297,13 @@ public class XMPPServer { ...@@ -296,6 +297,13 @@ public class XMPPServer {
loader = Thread.currentThread().getContextClassLoader(); loader = Thread.currentThread().getContextClassLoader();
try {
CacheFactory.initialize();
} catch (InitializationException e) {
e.printStackTrace();
Log.error(e);
}
initialized = true; initialized = true;
} }
......
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