pluginloader.java
来自「模块化您的应用系统」· Java 代码 · 共 34 行
JAVA
34 行
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 + =
减小字号Ctrl + -
显示快捷键?