Commit 3678f041 authored by Matt Tucker's avatar Matt Tucker Committed by matt

Refactoring.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@623 b35dd754-fafc-0310-a699-88a17e54d16e
parent 5be423b4
......@@ -13,9 +13,7 @@ package org.jivesoftware.messenger.plugin;
import org.jivesoftware.messenger.container.Plugin;
import org.jivesoftware.messenger.container.PluginManager;
import org.jivesoftware.messenger.container.ServiceLookupFactory;
import org.jivesoftware.messenger.*;
import org.jivesoftware.messenger.auth.UnauthorizedException;
import org.xmpp.packet.Message;
import org.xmpp.packet.Packet;
import org.xmpp.packet.PacketError;
......@@ -70,11 +68,7 @@ public class BroadcastPlugin implements Plugin, Component {
}
public void initialize(PluginManager manager, File pluginDirectory) {
try {
sessionManager = (SessionManager)ServiceLookupFactory.getLookup().lookup(
SessionManager.class);
}
catch (UnauthorizedException ue) { }
sessionManager = SessionManager.getInstance();
// Register as a component.
ComponentManager.getInstance().addComponent(serviceName, this);
......
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