From 35ded1fef31b69b80995c3cdf4a5df5407abc3ba Mon Sep 17 00:00:00 2001 From: ulrich@undisclosed <ulrich@ulrich-vaio> Date: Sun, 17 May 2020 18:37:44 +0000 Subject: [PATCH] Code aufgeraeumt, Stile verfeinert --- src/java/de/uhilger/um/web/Initialiser.java | 10 ++++++---- 1 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/java/de/uhilger/um/web/Initialiser.java b/src/java/de/uhilger/um/web/Initialiser.java index 3fa226a..ca9db18 100644 --- a/src/java/de/uhilger/um/web/Initialiser.java +++ b/src/java/de/uhilger/um/web/Initialiser.java @@ -62,10 +62,6 @@ /** Name des SQL-Befehls zum Pruefen, ob die Datenbank vorhanden ist */ public static final String SQL_DB_VORHANDEN = "dbVorhanden"; - public static final String MP_USER = "userMapper"; - public static final String MP_USER_DATA = "userDataMapper"; - public static final String MP_USER_ROLE = "userRoleMapper"; - /** * Diese Webanwendung initialisieren, also z.B. Elemente instantiieren, die * über den Deployment Descritpor veränderlich gehalten sind. @@ -205,6 +201,12 @@ @Override public void contextDestroyed(ServletContextEvent sce) { // destroy whatever + ServletContext ctx = sce.getServletContext(); + ctx.removeAttribute(UserMgr.MP_USER); + ctx.removeAttribute(UserMgr.MP_USER_DATA); + ctx.removeAttribute(UserMgr.MP_USER_ROLE); + ctx.removeAttribute(UserMgr.UM_SQL_PROPERTIES); + ctx.removeAttribute(UserMgr.UM_DB); } } -- Gitblit v1.9.3