Package org.apache.struts2.dispatcher
Class FreemarkerCacheDestroyable
java.lang.Object
org.apache.struts2.dispatcher.FreemarkerCacheDestroyable
- All Implemented Interfaces:
ContextAwareDestroyable,InternalDestroyable
WW-5537: Clears FreeMarker's template and class introspection caches
stored in
ServletContext during application undeploy, preventing
classloader leaks.- Since:
- 7.2.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy(jakarta.servlet.ServletContext servletContext) Releases state that requires access to theServletContext.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.struts2.dispatcher.ContextAwareDestroyable
destroy
-
Constructor Details
-
FreemarkerCacheDestroyable
public FreemarkerCacheDestroyable()
-
-
Method Details
-
destroy
public void destroy(jakarta.servlet.ServletContext servletContext) Description copied from interface:ContextAwareDestroyableReleases state that requires access to theServletContext.- Specified by:
destroyin interfaceContextAwareDestroyable- Parameters:
servletContext- the current servlet context, may benullif the Dispatcher was created without one
-