src/main/java/de/uapcore/lightpit/ModuleManager.java

changeset 30
fb30f7b78f9b
parent 29
27a0fdd7bca7
child 31
58f78f0142e8
--- a/src/main/java/de/uapcore/lightpit/ModuleManager.java	Sat May 09 14:26:31 2020 +0200
+++ b/src/main/java/de/uapcore/lightpit/ModuleManager.java	Sat May 09 14:37:15 2020 +0200
@@ -28,25 +28,22 @@
  */
 package de.uapcore.lightpit;
 
-import de.uapcore.lightpit.entities.CoreDAOFactory;
+import de.uapcore.lightpit.dao.CoreDAOFactory;
+import de.uapcore.lightpit.dao.ModuleDao;
 import de.uapcore.lightpit.entities.Module;
-import de.uapcore.lightpit.entities.ModuleDao;
-import java.sql.Connection;
-import java.sql.SQLException;
-import java.util.Collections;
-import java.util.HashMap;
-import java.util.List;
-import java.util.Map;
-import java.util.Optional;
-import java.util.concurrent.atomic.AtomicBoolean;
-import java.util.stream.Collectors;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
 import javax.servlet.Registration;
 import javax.servlet.ServletContext;
 import javax.servlet.ServletContextEvent;
 import javax.servlet.ServletContextListener;
 import javax.servlet.annotation.WebListener;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
+import java.sql.Connection;
+import java.sql.SQLException;
+import java.util.*;
+import java.util.concurrent.atomic.AtomicBoolean;
+import java.util.stream.Collectors;
 
 /**
  * Scans registered servlets for LightPIT modules.
@@ -144,17 +141,17 @@
         dirty.set(true);
         LOG.info("Modules loaded.");
     }
-    
+
     /**
      * Synchronizes module information with the database.
-     * 
+     * <p>
      * This must be called from the {@link AbstractLightPITServlet}.
      * Admittedly the call will perform the synchronization once after reload
      * and be a no-op, afterwards.
-     * However, we since the DatabaseFacade might be loaded after the module
+     * However, since the DatabaseFacade might be loaded after the module
      * manager, we must defer the synchronization to the first request
      * handled by the Servlet.
-     * 
+     *
      * @param db interface to the database
      */
     public void syncWithDatabase(DatabaseFacade db) {

mercurial