public class PluginRepository extends java.lang.Object implements PluginEngineModule
限定符和类型 | 方法和说明 |
---|---|
Plugin |
customLoad(PluginFolder folder) |
Plugin |
findBySameID(PluginMarker marker) |
Plugin |
get(java.lang.ClassLoader classLoader) |
Plugin |
get(PluginMarker marker) |
java.util.List<Plugin> |
getAllByDownSort()
根据依赖拓扑顺序加载
|
java.util.List<Plugin> |
getAllByReverseSort() |
static PluginRepository |
getInstance() |
java.util.List<PluginMarker> |
getInverseDependencyList(PluginMarker marker)
按照拓扑顺序获取所有依赖Marker的插件
|
Plugin |
getNotLowerThan(PluginMarker marker)
获取不低于指定版本的插件
|
void |
newInstalledPlugin(PluginMarker marker)
安装了新的插件,手动去加载
|
void |
remove(PluginMarker marker) |
void |
start() |
void |
stop() |
public static PluginRepository getInstance()
public void start()
start
在接口中 PluginEngineModule
public void stop()
stop
在接口中 PluginEngineModule
public void newInstalledPlugin(PluginMarker marker)
public Plugin customLoad(PluginFolder folder)
public java.util.List<PluginMarker> getInverseDependencyList(PluginMarker marker) throws CycleFoundException
public void remove(PluginMarker marker)
public java.util.List<Plugin> getAllByDownSort()
public java.util.List<Plugin> getAllByReverseSort()
public Plugin getNotLowerThan(PluginMarker marker)
public Plugin get(PluginMarker marker)
public Plugin get(java.lang.ClassLoader classLoader)
public Plugin findBySameID(PluginMarker marker)