From 0017f5a84e74b27dda68b9c5a046a0c6d0fb6242 Mon Sep 17 00:00:00 2001 From: "Christian P. MOMON" Date: Mon, 12 Aug 2024 14:23:22 +0200 Subject: [PATCH] Added clear caches features. --- src/fr/devinsy/kiss4web/dispatcher/KissDispatcher.java | 9 +++++++++ .../kiss4web/dispatcher/KissDispatcherServlet.java | 3 --- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/fr/devinsy/kiss4web/dispatcher/KissDispatcher.java b/src/fr/devinsy/kiss4web/dispatcher/KissDispatcher.java index 230ea76..c858a5a 100755 --- a/src/fr/devinsy/kiss4web/dispatcher/KissDispatcher.java +++ b/src/fr/devinsy/kiss4web/dispatcher/KissDispatcher.java @@ -63,6 +63,15 @@ public class KissDispatcher this.annotationHooks = AnnotationUtils.getAnnotationHooks(); } + /** + * Clear. + */ + public void clear() + { + this.cache.clear(); + KissDispatcherFactory.instance().clearCache(); + } + /** * Gets the annotation hooks. * diff --git a/src/fr/devinsy/kiss4web/dispatcher/KissDispatcherServlet.java b/src/fr/devinsy/kiss4web/dispatcher/KissDispatcherServlet.java index 8478892..0cc21d5 100644 --- a/src/fr/devinsy/kiss4web/dispatcher/KissDispatcherServlet.java +++ b/src/fr/devinsy/kiss4web/dispatcher/KissDispatcherServlet.java @@ -32,9 +32,6 @@ import jakarta.servlet.http.HttpServletResponse; /** * The Class KissDispatcher. * - * According that URL is under UTF-8 format. Set Tomcat connector if needs - * (). - * */ public class KissDispatcherServlet extends HttpServlet {