⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pluginloader.java

📁 模块化您的应用系统
💻 JAVA
字号:
package com.opensymphony.tonic.loaders;

import com.opensymphony.tonic.PluginParseException;
import com.opensymphony.tonic.ModuleDescriptorFactory;
import com.opensymphony.tonic.Plugin;
import com.opensymphony.tonic.PluginException;

import java.util.Collection;

public interface PluginLoader
{
    Collection loadAllPlugins(ModuleDescriptorFactory moduleDescriptorFactory) throws PluginParseException;

    /**
     * @return true if this PluginLoader tracks whether or not plugins are added to it.
     */
    boolean supportsAddition();

    /**
     * @return true if this PluginLoader tracks whether or not plugins are removed from it.
     */
    boolean supportsRemoval();

    /**
     * @return a collection of discovered plugins which have now been loaded by this pluginloader
     */
    Collection addFoundPlugins(ModuleDescriptorFactory moduleDescriptorFactory);

    /**
     * Remove a specific tonic
     */
    void removePlugin(Plugin plugin) throws PluginException;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -