Commit d0875aec authored by Derek DeMoro's avatar Derek DeMoro Committed by derek

Updating with Component Probing


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@355 b35dd754-fafc-0310-a699-88a17e54d16e
parent 2488cad9
package org.jivesoftware.messenger;
import java.util.Map;
import java.util.Iterator;
import java.util.concurrent.ConcurrentHashMap;
import org.jivesoftware.util.StringUtils;
import org.jivesoftware.messenger.spi.PresenceImpl;
import org.jivesoftware.util.StringUtils;
public class ComponentManager {
private Map<String, Component> components = new ConcurrentHashMap<String, Component>();
......@@ -20,7 +18,7 @@ public class ComponentManager {
* creating it if necessary.
* <p/>
*
* @return the singleton instance of <Code>UserManager</CODE>
* @return the singleton instance of <Code>ComponentManager</CODE>
*/
public static ComponentManager getInstance() {
// Synchronize on LOCK to ensure that we don't end up creating
......@@ -84,6 +82,9 @@ public class ComponentManager {
presence.setSender(prober);
presence.setRecipient(probee);
component.processPacket(presence);
// No reason to hold onto prober reference.
presenceMap.remove(prober);
}
}
}
......
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