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


Java PropertyEventDispatcher.removeListener方法代码示例

本文整理汇总了Java中org.jivesoftware.util.PropertyEventDispatcher.removeListener方法的典型用法代码示例。如果您正苦于以下问题:Java PropertyEventDispatcher.removeListener方法的具体用法?Java PropertyEventDispatcher.removeListener怎么用?Java PropertyEventDispatcher.removeListener使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.jivesoftware.util.PropertyEventDispatcher的用法示例。


在下文中一共展示了PropertyEventDispatcher.removeListener方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: stopInstance

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
/**
 *  Stops the transport instance if it's running.
 */
public void stopInstance() {
    if (!running) {
        return;
    }

    Log.info("Stopping transport service: "+type.toString());

    transport.shutdown();
    PropertyEventDispatcher.removeListener(this);
    try {
        componentManager.removeComponent(this.subDomain);
    }
    catch (Exception e) {
        Log.error("Error while removing component "+this.subDomain+": ", e);
    }
    transport = null;
    running = false;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:22,代码来源:TransportInstance.java

示例2: destroyPlugin

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void destroyPlugin() {
    PropertyEventDispatcher.removeListener(this);
    // Unregister component.
    if (componentManager != null) {
        try {
            componentManager.removeComponent(serviceName);
        }
        catch (Exception e) {
            Log.error(e.getMessage(), e);
        }
    }
    componentManager = null;
    userManager = null;
    pluginManager = null;
    sessionManager = null;
    groupManager = null;
    allowedUsers.clear();
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:19,代码来源:BroadcastPlugin.java

示例3: destroyPlugin

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void destroyPlugin() {
    PropertyEventDispatcher.removeListener(this);
    pluginManager = null;
    try {
        componentManager.removeComponent(serviceName);
        componentManager = null;
    } catch (Exception e) {
        if (componentManager != null) {
            Log.error(e.getMessage(), e);
        }
    }
    serviceName = null;
    userManager = null;
    excludedFields = null;
    serverName = null;
    fieldLookup = null;
    reverseFieldLookup = null;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:19,代码来源:SearchPlugin.java

示例4: destroyPlugin

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void destroyPlugin() {
	PropertyEventDispatcher.removeListener(this);
	pluginManager = null;
	try {
		componentManager.removeComponent(serviceName);
		componentManager = null;
	} catch (Exception e) {
		if (componentManager != null) {
			Log.error(e.getMessage(), e);
		}
	}
	serviceName = null;
	userManager = null;
	excludedFields = null;
	serverName = null;
	fieldLookup = null;
	reverseFieldLookup = null;
}
 
开发者ID:idwanglu2010,项目名称:openfire,代码行数:19,代码来源:SearchPlugin.java

示例5: destroyPlugin

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void destroyPlugin() {
    PropertyEventDispatcher.removeListener(this);
    pluginManager = null;
    try {
        componentManager.removeComponent(serviceName);
        componentManager = null;
    }
    catch (Exception e) {
        if (componentManager != null) {
            Log.error(e.getMessage(), e);
        }
    }
    serviceName = null;
    userManager = null;
    exculudedFields = null;
    serverName = null;
    fieldLookup = null;
    reverseFieldLookup = null;
}
 
开发者ID:surevine,项目名称:openfire-bespoke,代码行数:20,代码来源:SearchPlugin.java

示例6: stop

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void stop() {
    archiveTask.cancel();
    archiveTask = null;
    cleanupTask.cancel();
    cleanupTask = null;

    // Remove the statistics.
    StatisticsManager.getInstance().removeStatistic(CONVERSATIONS_KEY);

    PropertyEventDispatcher.removeListener(propertyListener);
    propertyListener = null;
    conversations.clear();
    conversations = null;

    // Archive anything remaining in the queue before quitting.
    new ArchivingTask().run();

    conversationQueue.clear();
    conversationQueue = null;

    messageQueue.clear();
    messageQueue = null;

    conversationListeners.clear();
    conversationListeners = null;

    serverInfo = null;
    InternalComponentManager.getInstance().removeListener(this);
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:30,代码来源:ConversationManager.java

示例7: destroyPlugin

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void destroyPlugin() {
    mainInterceptor.freeze();
    iManager.removeInterceptor(mainInterceptor);
    PropertyEventDispatcher.removeListener(_settingsObserver);
    compManager.removeListener(_componentObserver);
    pluginManager = null;
    mainInterceptor = null;
    compManager = null;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:10,代码来源:RemoteRosterPlugin.java

示例8: destroyPlugin

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void destroyPlugin() {

		Log.info("ServerInfo - Closing plugin.");
		Log.debug("ServerInfo - Closing plugin.");

		PropertyEventDispatcher.removeListener(this);
		// Unregister component.

		if (componentManager != null) {

			try {

				componentManager.removeComponent(serviceName);
			}
			catch (Exception e) {

				Log.error(e.getMessage(), e);
			}
		}

		serviceName = JiveGlobals.getProperty("plugin.serverinfo.serviceName", "");
		componentManager = null;
		userManager = null;
		pluginManager = null;
		sessionManager = null;

		Log.info("ServerInfo - Closing thread.");
		Log.debug("ServerInfo - Closing thread.");
		clientConnect();
		ServerInfoPlugin.NotExit=false;
		ServerInfoPlugin.ofThread.stop();
		Log.info("ServerInfo - Thread closed.");
		Log.debug("ServerInfo - Thread closed.");
	}
 
开发者ID:mhterres,项目名称:ServerInfo,代码行数:35,代码来源:ServerInfoPlugin.java

示例9: destroyPlugin

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void destroyPlugin() {
	Log.info("Destroying GoJara");
	mainInterceptor.freeze();
	iManager.removeInterceptor(mainInterceptor);
	PropertyEventDispatcher.removeListener(_settingsObserver);
	compManager.removeListener(_componentObserver);
	pluginManager = null;
	mainInterceptor = null;
	compManager = null;
}
 
开发者ID:idwanglu2010,项目名称:openfire,代码行数:11,代码来源:RemoteRosterPlugin.java

示例10: stop

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void stop() {
	archiveTask.cancel();
	archiveTask = null;
	cleanupTask.cancel();
	cleanupTask = null;

	// Remove the statistics.
	StatisticsManager.getInstance().removeStatistic(CONVERSATIONS_KEY);

	PropertyEventDispatcher.removeListener(propertyListener);
	propertyListener = null;
	conversations.clear();
	conversations = null;

	// Archive anything remaining in the queue before quitting.
	new ArchivingTask().run();

	conversationQueue.clear();
	conversationQueue = null;

	messageQueue.clear();
	messageQueue = null;

	conversationListeners.clear();
	conversationListeners = null;

	serverInfo = null;
	InternalComponentManager.getInstance().removeListener(this);
}
 
开发者ID:idwanglu2010,项目名称:openfire,代码行数:30,代码来源:ConversationManager.java

示例11: destroyPlugin

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void destroyPlugin() {
    ClusterManager.shutdown();

    // Set the old serialization strategy was using before enterprise was loaded
    ExternalizableUtil.getInstance().setStrategy(serializationStrategy);

    // Stop listing for clustering setting events (e.g. enabled/disabled)
    PropertyEventDispatcher.removeListener(this);
}
 
开发者ID:coodeer,项目名称:g3server,代码行数:10,代码来源:ClusteringPlugin.java

示例12: destroyPlugin

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void destroyPlugin() {
	for (String key : _interceptors.keySet()) {
		_interceptors.get(key).stop();
	}
	PropertyEventDispatcher.removeListener(_settingsObserver);
	pluginManager = null;
}
 
开发者ID:surevine,项目名称:openfire-bespoke,代码行数:8,代码来源:RemoteRosterPlugin.java

示例13: destroy

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
@Override
public void destroy() {
    AuthCheckFilter.removeExclude("kraken/xml-rpc");
    PropertyEventDispatcher.removeListener(this);        
    conduit = null;
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:7,代码来源:GatewayXMLRPC.java

示例14: destroyPlugin

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void destroyPlugin() {
    userManager = null;
    // Stop listening to system property events
    PropertyEventDispatcher.removeListener(this);
}
 
开发者ID:idwanglu2010,项目名称:openfire,代码行数:6,代码来源:UserServicePlugin.java

示例15: destroyPlugin

import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
@Override
public void destroyPlugin()
{
    PropertyEventDispatcher.removeListener( this );
    directoryWatcher.stop();
}
 
开发者ID:igniterealtime,项目名称:Openfire,代码行数:7,代码来源:CertificateManagerPlugin.java


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