本文整理汇总了Java中com.bluedragon.plugin.PluginManagerInterface.addRequestListener方法的典型用法代码示例。如果您正苦于以下问题:Java PluginManagerInterface.addRequestListener方法的具体用法?Java PluginManagerInterface.addRequestListener怎么用?Java PluginManagerInterface.addRequestListener使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.bluedragon.plugin.PluginManagerInterface
的用法示例。
在下文中一共展示了PluginManagerInterface.addRequestListener方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: pluginStart
import com.bluedragon.plugin.PluginManagerInterface; //导入方法依赖的package包/类
@Override public void pluginStart(PluginManagerInterface manager, xmlCFML systemParameters) {
manager.addRequestListener( this );
userFormField = systemParameters.getString("server.plugin.login.userfield");
if ( userFormField == null || userFormField.length() == 0 ){
manager.log("[LoginPlugin] <server>.<plugin>.<login>.<userfield>: no userfield specified");
userFormField = null;
return;
}
passwordFormField = systemParameters.getString("server.plugin.login.passwordfield");
if ( passwordFormField == null || passwordFormField.length() == 0 ){
manager.log("[LoginPlugin] <server>.<plugin>.<login>.<passwordfield>: no passwordfield specified");
userFormField = null;
return;
}
returnFormField = systemParameters.getString("server.plugin.login.returnfield");
if ( returnFormField == null || returnFormField.length() == 0 ){
manager.log("[LoginPlugin] <server>.<plugin>.<login>.<returnfield>: no returnfield specified");
userFormField = null;
return;
}
manager.log("[LoginPlugin] userfield=" + userFormField + "; passwordfield=" + passwordFormField + "; returnfield=" + returnFormField );
String iniFile = systemParameters.getString("server.plugin.login.ini");
if ( iniFile == null || iniFile.length() == 0 ){
manager.log("[LoginPlugin] <server>.<plugin>.<login>.<ini>: No INI path given");
userFormField = null;
return;
}
File iniF = new File(iniFile);
if ( !iniF.exists() ){
manager.log("[LoginPlugin] <server>.<plugin>.<login>.<ini>: " + iniF + " was not found");
userFormField = null;
return;
}
manager.log("[LoginPlugin] iniFile=" + iniFile );
// Setup the factory
factory = new IniSecurityManagerFactory(iniFile);
SecurityUtils.setSecurityManager(factory.getInstance());
}
示例2: pluginStart
import com.bluedragon.plugin.PluginManagerInterface; //导入方法依赖的package包/类
@Override public void pluginStart(PluginManagerInterface manager, xmlCFML systemParameters) {
manager.addRequestListener( this );
manager.registerFunction("mongoregister", "com.bluedragon.mongo.MongoRegister" );
manager.registerFunction("mongoderegister", "com.bluedragon.mongo.MongoDeRegister" );
manager.registerFunction("mongoisvalid", "com.bluedragon.mongo.MongoIsRegistered" );
manager.registerFunction("mongodatabaselist", "com.bluedragon.mongo.MongoDatabaseList" );
manager.registerFunction("mongodatabasedrop", "com.bluedragon.mongo.MongoDatabaseDrop" );
manager.registerFunction("mongodatabasestats", "com.bluedragon.mongo.MongoDatabaseStats" );
manager.registerFunction("mongodatabaseruncmd", "com.bluedragon.mongo.MongoDatabaseRunCmd" );
manager.registerFunction("mongoobjectid", "com.bluedragon.mongo.MongoObjectId" );
manager.registerFunction("mongocollectionlist", "com.bluedragon.mongo.MongoCollectionList" );
manager.registerFunction("mongocollectiondrop", "com.bluedragon.mongo.MongoCollectionDrop" );
manager.registerFunction("mongocollectioncount", "com.bluedragon.mongo.MongoCollectionCount" );
manager.registerFunction("mongocollectionrename", "com.bluedragon.mongo.MongoCollectionRename" );
manager.registerFunction("mongocollectionstats", "com.bluedragon.mongo.MongoCollectionStats" );
manager.registerFunction("mongocollectiondistinct", "com.bluedragon.mongo.MongoCollectionDistinct" );
manager.registerFunction("mongocollectioninsert", "com.bluedragon.mongo.MongoCollectionInsert" );
manager.registerFunction("mongocollectionsave", "com.bluedragon.mongo.MongoCollectionSave" );
manager.registerFunction("mongocollectionupdate", "com.bluedragon.mongo.MongoCollectionUpdate" );
manager.registerFunction("mongocollectionremove", "com.bluedragon.mongo.MongoCollectionRemove" );
manager.registerFunction("mongocollectionfind", "com.bluedragon.mongo.MongoCollectionFind" );
manager.registerFunction("mongocollectionfindone", "com.bluedragon.mongo.MongoCollectionFindOne" );
manager.registerFunction("mongocollectionfindandmodify", "com.bluedragon.mongo.MongoCollectionFindAndModify" );
manager.registerFunction("mongocollectionindexdrop", "com.bluedragon.mongo.MongoCollectionIndexDrop" );
manager.registerFunction("mongocollectionindexensure", "com.bluedragon.mongo.MongoCollectionIndexEnsure" );
manager.registerFunction("mongocollectionmapreduce", "com.bluedragon.mongo.MongoCollectionMapReduce" );
manager.registerFunction("mongocollectiongroup", "com.bluedragon.mongo.MongoCollectionGroup" );
manager.registerFunction("mongocollectionaggregate", "com.bluedragon.mongo.MongoCollectionAggregate" );
manager.registerFunction("mongogridfssave", "com.bluedragon.mongo.gridfs.Add");
manager.registerFunction("mongogridfsremove", "com.bluedragon.mongo.gridfs.Delete");
manager.registerFunction("mongogridfsfindone", "com.bluedragon.mongo.gridfs.FindOne");
manager.registerFunction("mongogridfsfind", "com.bluedragon.mongo.gridfs.Find");
manager.registerFunction("mongogridfsget", "com.bluedragon.mongo.gridfs.Get");
SystemClock.setListenerMinute(this, 2);
}