Commit 8fcd236a authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gaston

Modified to initialize the IQHandler when adding a new one. JM-211


git-svn-id: http://svn.igniterealtime.org/svn/repos/messenger/trunk@1124 b35dd754-fafc-0310-a699-88a17e54d16e
parent bb37a37c
......@@ -95,6 +95,8 @@ public class IQRouter extends BasicModule {
if (iqHandlers.contains(handler)) {
throw new IllegalArgumentException("IQHandler already provided by the server");
}
// Ask the handler to be initialized
handler.initialize(XMPPServer.getInstance());
// Register the handler as the handler of the namespace
namespace2Handlers.put(handler.getInfo().getNamespace(), handler);
}
......
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