Class FreemarkerCacheDestroyable

java.lang.Object
org.apache.struts2.dispatcher.FreemarkerCacheDestroyable
All Implemented Interfaces:
ContextAwareDestroyable, InternalDestroyable

public class FreemarkerCacheDestroyable extends Object implements ContextAwareDestroyable
WW-5537: Clears FreeMarker's template and class introspection caches stored in ServletContext during application undeploy, preventing classloader leaks.
Since:
7.2.0
  • Constructor Details

    • FreemarkerCacheDestroyable

      public FreemarkerCacheDestroyable()
  • Method Details

    • destroy

      public void destroy(jakarta.servlet.ServletContext servletContext)
      Description copied from interface: ContextAwareDestroyable
      Releases state that requires access to the ServletContext.
      Specified by:
      destroy in interface ContextAwareDestroyable
      Parameters:
      servletContext - the current servlet context, may be null if the Dispatcher was created without one