本文整理汇总了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;
}
示例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();
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例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;
}
示例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.");
}
示例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;
}
示例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);
}
示例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);
}
示例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;
}
示例13: destroy
import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
@Override
public void destroy() {
AuthCheckFilter.removeExclude("kraken/xml-rpc");
PropertyEventDispatcher.removeListener(this);
conduit = null;
}
示例14: destroyPlugin
import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
public void destroyPlugin() {
userManager = null;
// Stop listening to system property events
PropertyEventDispatcher.removeListener(this);
}
示例15: destroyPlugin
import org.jivesoftware.util.PropertyEventDispatcher; //导入方法依赖的package包/类
@Override
public void destroyPlugin()
{
PropertyEventDispatcher.removeListener( this );
directoryWatcher.stop();
}