public class PluginUtil
extends java.lang.Object
构造器和说明 |
---|
PluginUtil() |
限定符和类型 | 方法和说明 |
---|---|
static void |
findPlugins(java.lang.ClassLoader classLoader,
java.util.Properties props,
java.util.Collection<java.lang.String> excludeList,
java.util.function.Consumer<PluginEntity> consumer)
查找插件
|
static void |
scanPlugins(java.lang.ClassLoader classLoader,
java.util.Collection<java.lang.String> excludeList,
java.util.function.Consumer<PluginEntity> consumer)
扫描插件
|
public static void scanPlugins(java.lang.ClassLoader classLoader, java.util.Collection<java.lang.String> excludeList, java.util.function.Consumer<PluginEntity> consumer)
classLoader
- 类加载器excludeList
- 排除列表public static void findPlugins(java.lang.ClassLoader classLoader, java.util.Properties props, java.util.Collection<java.lang.String> excludeList, java.util.function.Consumer<PluginEntity> consumer)