}
String className = module.substring(0, idx);
String config = module.substring(idx + 1);
try {
Class<?> clazz = Class.forName(className);
final JnodeModule jnodeModule = (JnodeModule) clazz
.getConstructor(String.class).newInstance(
config);
Notifier.INSTANSE.register(SharedModuleEvent.class,
jnodeModule);
// module in new thread
new Thread(new Runnable() {
@Override
public void run() {
jnodeModule.start();
}
}).start();
logger.l2("Module " + className + " started");
} catch (Exception e) {
logger.l2("Module " + className + " failed", e);