--- a/src/java/de/uapcore/lightpit/ModuleManager.java Sat Dec 16 20:19:28 2017 +0100 +++ b/src/java/de/uapcore/lightpit/ModuleManager.java Sun Dec 17 01:45:28 2017 +0100 @@ -107,8 +107,9 @@ } } - private void addModuleToMenu(LightPITModule moduleInfo) { + private void addModuleToMenu(String moduleClassName, LightPITModule moduleInfo) { final Menu menu = new Menu( + moduleClassName, new ResourceKey(moduleInfo.bundleBaseName(), moduleInfo.menuKey()), moduleInfo.modulePath() ); @@ -118,7 +119,9 @@ private void handleServletRegistration(String name, Registration reg) { final Optional<LightPITModule> moduleInfo = getModuleInfo(reg); if (moduleInfo.isPresent()) { - addModuleToMenu(moduleInfo.get()); + + // TODO: remove this call and add the module to some dependency resolver, first + addModuleToMenu(reg.getClassName(), moduleInfo.get()); LOG.info("Module detected: {}", name); } else {