Examples of JnodeModule


Examples of jnode.module.JnodeModule

            }
            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);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.