/** * Registers a new MultiUserChatService implementation to the manager. * This is typically used if you have a custom MUC implementation that you * want to register with the manager. In other words, it may not be database * stored and may follow special rules, implementating MultiUserChatService. * It is also used internally to register services from the database. Triggers * the service to start up. * * @param service The MultiUserChatService to be registered. */ public void registerMultiUserChatService(MultiUserChatService service) { Log.debug("MultiUserChatManager: Registering MUC service "+service.getServiceName()); try { ComponentManagerFactory.getComponentManager().addComponent(service.getServiceName(), service); mucServices.put(service.getServiceName(), service); } catch (ComponentException e) { Log.error("MultiUserChatManager: Unable to add "+service.getServiceName()+" as component.", e); } }
/** * Registers a new MultiUserChatService implementation to the manager. * This is typically used if you have a custom MUC implementation that you * want to register with the manager. In other words, it may not be database * stored and may follow special rules, implementating MultiUserChatService. * It is also used internally to register services from the database. Triggers * the service to start up. * * @param service The MultiUserChatService to be registered. */ public void registerMultiUserChatService(MultiUserChatService service) { Log.debug("MultiUserChatManager: Registering MUC service "+service.getServiceName()); try { ComponentManagerFactory.getComponentManager().addComponent(service.getServiceName(), service); mucServices.put(service.getServiceName(), service); } catch (ComponentException e) { Log.error("MultiUserChatManager: Unable to add "+service.getServiceName()+" as component.", e); } }
ComponentManagerFactory.getComponentManager().addComponent(jicofoSubdomain, jicofoComponent);
componentManager.addComponent( subdomain, component );