本文整理汇总了Java中org.xmpp.component.ComponentManager类的典型用法代码示例。如果您正苦于以下问题:Java ComponentManager类的具体用法?Java ComponentManager怎么用?Java ComponentManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ComponentManager类属于org.xmpp.component包,在下文中一共展示了ComponentManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initialize
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public void initialize(JID jid, ComponentManager componentManager) throws ComponentException {
// Set the full domain address that this component is serving
serviceAddress = jid;
agentManager = new AgentManager();
// Set a default MUC service JID. This may be required when the server does
// not support service discovery
mucServiceName = "conference." + componentManager.getServerName();
// Send a disco request to discover the MUC service address
IQ disco = new IQ(IQ.Type.get);
disco.setTo(componentManager.getServerName());
disco.setFrom(jid);
disco.setChildElement("query", "http://jabber.org/protocol/disco#items");
send(disco);
// Start the background processes
startTimer();
// Load Workgroups
loadWorkgroups();
// Set that the workgroups have been loaded
loaded = true;
}
示例2: TransportInstance
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
/**
* Creates a new transport instance.
*
* @param type Type of transport.
* @param description Short description of transport.
* @param classname Full name/path of class associated with instance.
* @param componentManager Component manager managing this instance.
* @param sessionRouter Session router managing this instance.
*/
public TransportInstance(TransportType type, String description, String classname, ComponentManager componentManager, TransportSessionRouter sessionRouter) {
this.description = description;
this.type = type;
this.nameOfClass = classname;
this.componentManager = componentManager;
this.sessionRouter = sessionRouter;
enabled = JiveGlobals.getBooleanProperty("plugin.gateway."+this.type.toString()+".enabled", false);
subDomain = JiveGlobals.getProperty("plugin.gateway."+this.type.toString()+".subdomain", this.type.toString());
}
示例3: initialize
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public void initialize(JID jid, ComponentManager componentManager) {
}
示例4: initialize
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
@Override
public void initialize(JID jid, ComponentManager componentManager) {
// TODO(thorogood): According to XEP-0114, the only valid JID here is the
// same JID we attempt to connect to the XMPP server with.
LOG.info("Initializing with JID: " + jid);
}
示例5: getManager
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public ComponentManager getManager() {
return manager;
}
示例6: initialize
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public void initialize(JID jid, ComponentManager componentManager) throws ComponentException {
component.initialize(jid, componentManager);
}
示例7: initialize
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
@Override
public void initialize(JID jid, ComponentManager componentManager) {
initialize(XMPPServer.getInstance());
}
示例8: initialize
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
@Override
public void initialize(JID jid, ComponentManager componentManager) {
addSubdomain(jid.toString());
}
示例9: initialize
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
/**
* Initializes the MUC transport.
* @see org.xmpp.component.Component#initialize(org.xmpp.packet.JID, org.xmpp.component.ComponentManager)
*/
public void initialize(JID jid, ComponentManager componentManager) {
this.jid = jid;
this.componentManager = componentManager;
}
示例10: initialize
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
/**
* Handles initialization of the transport.
*/
public void initialize(JID jid, ComponentManager componentManager) {
this.jid = jid;
this.componentManager = componentManager;
rosterManager = XMPPServer.getInstance().getRosterManager();
}
示例11: getComponentManager
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
/**
* @return the component manager of the transport.
*/
public ComponentManager getComponentManager() {
return componentManager;
}
示例12: initialize
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public void initialize(JID jid, ComponentManager componentManager) throws ComponentException {
// Do nothing.
}
示例13: initialize
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public void initialize(JID jid, ComponentManager componentManager) throws ComponentException {
RemoteSessionTask task = new InitializeTask(address, jid);
doClusterTask(task);
}
示例14: LogListenerImpl
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public LogListenerImpl(ComponentManager componentmanager) {
this.componentManager = componentmanager;
}
示例15: getComponentManager
import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public ComponentManager getComponentManager() {
return this.componentManager;
}