当前位置: 首页>>代码示例>>Java>>正文


Java ComponentManager类代码示例

本文整理汇总了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;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:25,代码来源:WorkgroupManager.java

示例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());
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:19,代码来源:TransportInstance.java

示例3: initialize

import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public void initialize(JID jid, ComponentManager componentManager) {
}
 
开发者ID:igniterealtime,项目名称:ofmeet-openfire-plugin,代码行数:3,代码来源:SipComponent.java

示例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);
}
 
开发者ID:jorkey,项目名称:Wiab.pro,代码行数:7,代码来源:ComponentPacketTransport.java

示例5: getManager

import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public ComponentManager getManager() {
    return manager;
}
 
开发者ID:igniterealtime,项目名称:Whack,代码行数:4,代码来源:ServerContainer.java

示例6: initialize

import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public void initialize(JID jid, ComponentManager componentManager) throws ComponentException {
    component.initialize(jid, componentManager);
}
 
开发者ID:igniterealtime,项目名称:Whack,代码行数:4,代码来源:ExternalComponent.java

示例7: initialize

import org.xmpp.component.ComponentManager; //导入依赖的package包/类
@Override
public void initialize(JID jid, ComponentManager componentManager) {
    initialize(XMPPServer.getInstance());

}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:6,代码来源:MultiUserChatServiceImpl.java

示例8: initialize

import org.xmpp.component.ComponentManager; //导入依赖的package包/类
@Override
public void initialize(JID jid, ComponentManager componentManager) {
    addSubdomain(jid.toString());
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:5,代码来源:LocalComponentSession.java

示例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;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:9,代码来源:BaseMUCTransport.java

示例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();
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:9,代码来源:BaseTransport.java

示例11: getComponentManager

import org.xmpp.component.ComponentManager; //导入依赖的package包/类
/**
 * @return the component manager of the transport.
 */
public ComponentManager getComponentManager() {
    return componentManager;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:7,代码来源:BaseTransport.java

示例12: initialize

import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public void initialize(JID jid, ComponentManager componentManager) throws ComponentException {
    // Do nothing.
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:4,代码来源:SparkVersionManager.java

示例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);
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:5,代码来源:RemoteComponentSession.java

示例14: LogListenerImpl

import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public LogListenerImpl(ComponentManager componentmanager) {
    this.componentManager = componentmanager;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:4,代码来源:LogListenerImpl.java

示例15: getComponentManager

import org.xmpp.component.ComponentManager; //导入依赖的package包/类
public ComponentManager getComponentManager() {
    return this.componentManager;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:4,代码来源:LogListenerImpl.java


注:本文中的org.xmpp.component.ComponentManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。