Commit 6850016f authored by Derek DeMoro's avatar Derek DeMoro Committed by derek

Update to use the ComponentManager.


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@279 b35dd754-fafc-0310-a699-88a17e54d16e
parent 1c5a3251
......@@ -45,8 +45,13 @@ public class PresenceManagerImpl extends BasicModule implements PresenceManager
public XMPPServer server;
public PacketDeliverer deliverer;
private ComponentManager componentManager;
public PresenceManagerImpl() {
super("Presence manager");
// Use component manager for Presence Updates.
componentManager = ComponentManager.getInstance();
}
private void initializeCaches() {
......@@ -361,4 +366,13 @@ public class PresenceManagerImpl extends BasicModule implements PresenceManager
trackInfo.getTrackerClasses().put(RoutingTable.class, "routingTable");
return trackInfo;
}
public Component getPresenceComponent(XMPPAddress probee){
// Check for registered components
Component component = componentManager.getComponent(probee.toBareStringPrep());
if(component != null){
return component;
}
return null;
}
}
\ 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