org.apache.struts2.dispatcher

## Class OgnlCacheDestroyable

- java.lang.Object
- - org.apache.struts2.dispatcher.OgnlCacheDestroyable

- All Implemented Interfaces:
    InternalDestroyable

      public class OgnlCacheDestroyable
      extends Object
      implements InternalDestroyable

  Clears OGNL runtime caches and JDK introspection caches that hold `Class<?>` references, preventing classloader leaks on hot redeploy.
  Since:
    6.9.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `OgnlCacheDestroyable()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `destroy()` Releases static state held by this component.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### OgnlCacheDestroyable

          public OgnlCacheDestroyable()

  - ### Method Detail

    - #### destroy

          public void destroy()

      Description copied from interface: `InternalDestroyable`
      Releases static state held by this component. Called once during `Dispatcher.cleanup()`.
      Specified by:
        `destroy` in interface `InternalDestroyable`

Copyright © 2000–2026 Apache Software Foundation. All rights reserved.