*
* @param module
*/
private void loadModuleScheduler(ModuleImpl module) {
// load the scheduler instance
ModuleScheduler scheduler = (ModuleScheduler) instantiateObject(module,
Module.PROPERTY_MODULE_SCHEDULER_CLASS, ModuleScheduler.class);
String maxSessions = module.getModuleProperties().get(Module.PROPERTY_MODULE_SCHEDULER_MAX_SESSIONS);
// initialize if we got a scheduler.
if (scheduler != null) {
scheduler.setModule(module);
scheduler.setDataService(dataService);
scheduler.initialize();
if (maxSessions != null) {
scheduler.setMaxSessions(Integer.valueOf(maxSessions));
}
module.setModuleScheduler(scheduler);
}
}