本文整理汇总了Java中ro.fortsoft.pf4j.PluginManager类的典型用法代码示例。如果您正苦于以下问题:Java PluginManager类的具体用法?Java PluginManager怎么用?Java PluginManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
PluginManager类属于ro.fortsoft.pf4j包,在下文中一共展示了PluginManager类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: loadModules
import ro.fortsoft.pf4j.PluginManager; //导入依赖的package包/类
@Override
public void loadModules(File baseDir) {
PluginManager manager = new DefaultPluginManager(baseDir);
manager.loadPlugins();
manager.startPlugins();
loadDBModules(manager);
loadIndexerModules(manager);
loadAuthentiationModules(manager);
loadEncryptors(manager);
}
示例2: get
import ro.fortsoft.pf4j.PluginManager; //导入依赖的package包/类
public static <T extends ExtensionPoint> T get(Class<T> extensionClass){//
PluginManager pluginManager = PluginContainer.getPluginManager();
/**
* check if we have plugin to evaluate logical expression
*/
List<T> exprList = pluginManager.getExtensions(extensionClass);
if (UtilValidate.isNotEmpty(exprList)){
return exprList.get(0);
}
return null;
}
示例3: getPluginManager
import ro.fortsoft.pf4j.PluginManager; //导入依赖的package包/类
public static PluginManager getPluginManager() {
return PLUGIN_MANAGER;
}
示例4: getPluginManager
import ro.fortsoft.pf4j.PluginManager; //导入依赖的package包/类
public static PluginManager getPluginManager() {
return pluginManager;
}
示例5: loadDBModules
import ro.fortsoft.pf4j.PluginManager; //导入依赖的package包/类
private void loadDBModules(PluginManager manager) {
List<DatabaseProvider> dbs = manager.getExtensions(DatabaseProvider.class);
for (DatabaseProvider i : dbs) {
EntryDatabases.INSTANCE.registerEntryDatabaseProvider(i);
}
}
示例6: loadIndexerModules
import ro.fortsoft.pf4j.PluginManager; //导入依赖的package包/类
private void loadIndexerModules(PluginManager manager) {
List<IndexerProvider> indexers = manager.getExtensions(IndexerProvider.class);
for (IndexerProvider i : indexers) {
Indexers.INSTANCE.registerIndexerProvider(i);
}
}
示例7: loadAuthentiationModules
import ro.fortsoft.pf4j.PluginManager; //导入依赖的package包/类
private void loadAuthentiationModules(PluginManager manager) {
List<AuthProvider> auths = manager.getExtensions(AuthProvider.class);
for (AuthProvider i : auths) {
AuthManagers.INSTANCE.registerAuthProvider(i);
}
}
示例8: loadEncryptors
import ro.fortsoft.pf4j.PluginManager; //导入依赖的package包/类
private void loadEncryptors(PluginManager manager) {
List<TransformerProvider> trans = manager.getExtensions(TransformerProvider.class);
for (TransformerProvider i : trans) {
JournalTransformers.INSTANCE.registerTransformerProvider(i);
}
}
示例9: getPluginManager
import ro.fortsoft.pf4j.PluginManager; //导入依赖的package包/类
public static PluginManager getPluginManager() {
return pluginManager;
}