Added clear caches features.

This commit is contained in:
Christian P. MOMON 2024-08-12 14:23:22 +02:00
parent 40fa91feb4
commit 0017f5a84e
2 changed files with 9 additions and 3 deletions

View file

@ -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.
*

View file

@ -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
* (<connector URIEncoding="UTF-8" />).
*
*/
public class KissDispatcherServlet extends HttpServlet
{