• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java SparkVersionManager类的典型用法和代码示例

java 1次浏览

本文整理汇总了Java中org.jivesoftware.openfire.plugin.spark.manager.SparkVersionManager的典型用法代码示例。如果您正苦于以下问题:Java SparkVersionManager类的具体用法?Java SparkVersionManager怎么用?Java SparkVersionManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。

SparkVersionManager类属于org.jivesoftware.openfire.plugin.spark.manager包,在下文中一共展示了SparkVersionManager类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: stop

点赞 2

import org.jivesoftware.openfire.plugin.spark.manager.SparkVersionManager; //导入依赖的package包/类
/**
 * Unload the Component.
 */
public void stop() {
    // Unregister components
    try {
        componentManager.removeComponent(SparkVersionManager.SERVICE_NAME);
        // Finally remove this service (this will set null to componentManager)
        componentManager.removeComponent(serviceName);
    }
    catch (ComponentException e) {
        Log.error(e.getMessage(), e);
    }

    taskEngine = null;
}
 

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

示例2: initializePlugin

点赞 2

import org.jivesoftware.openfire.plugin.spark.manager.SparkVersionManager; //导入依赖的package包/类
public void initializePlugin(PluginManager manager, File pluginDirectory) {
    // Check if we Enterprise is installed and stop loading this plugin if found
    File pluginDir = new File(JiveGlobals.getHomeDirectory(), "plugins");
    File[] jars = pluginDir.listFiles(new FileFilter() {
        public boolean accept(File pathname) {
            String fileName = pathname.getName().toLowerCase();
            return (fileName.equalsIgnoreCase("enterprise.jar"));
        }
    });
    if (jars.length > 0) {
        // Do not load this plugin since Enterprise is still installed
        System.out.println("Enterprise plugin found. Stopping Client Control Plugin");
        throw new IllegalStateException("This plugin cannot run next to the Enterprise plugin");
    }

    taskEngine = TaskEngine.getInstance();
    sparkManager = new SparkManager(taskEngine);
    sparkManager.start();

    // Create and start the Spark version manager
    sparkVersionManager = new SparkVersionManager();
    sparkVersionManager.start();

    fileTransferFilterManager = new FileTransferFilterManager();
    fileTransferFilterManager.start();

}
 

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

示例3: initializePlugin

点赞 2

import org.jivesoftware.openfire.plugin.spark.manager.SparkVersionManager; //导入依赖的package包/类
public void initializePlugin(PluginManager manager, File pluginDirectory) {
    System.out.println("Starting Client Control Plugin");

    // Check if we Enterprise is installed and stop loading this plugin if found
    File pluginDir = new File(JiveGlobals.getHomeDirectory(), "plugins");
    File[] jars = pluginDir.listFiles(new FileFilter() {
        public boolean accept(File pathname) {
            String fileName = pathname.getName().toLowerCase();
            return (fileName.equalsIgnoreCase("enterprise.jar"));
        }
    });
    if (jars.length > 0) {
        // Do not load this plugin since Enterprise is still installed
        System.out.println("Enterprise plugin found. Stopping Client Control Plugin");
        throw new IllegalStateException("This plugin cannot run next to the Enterprise plugin");
    }

    taskEngine = TaskEngine.getInstance();
    sparkManager = new SparkManager(taskEngine);
    sparkManager.start();
    // Create and start the bookmark interceptor, which adds server-managed bookmarks when
    // a user requests their bookmark list.
    bookmarkInterceptor = new BookmarkInterceptor();
    bookmarkInterceptor.start();
    // Create and start the Spark version manager
    sparkVersionManager = new SparkVersionManager();
    sparkVersionManager.start();

    fileTransferFilterManager = new FileTransferFilterManager();
    fileTransferFilterManager.start();

}
 

开发者ID:coodeer,
项目名称:g3server,
代码行数:33,
代码来源:ClientControlPlugin.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)