org.apache.struts2.dispatcher

## Class ComponentCacheDestroyable

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

- All Implemented Interfaces:
    InternalDestroyable

      public class ComponentCacheDestroyable
      extends Object
      implements InternalDestroyable

  Clears `Component`'s static standard attributes cache to prevent classloader leaks on hot redeploy. Wrapper is needed because `Component` requires constructor arguments that prevent direct container instantiation.
  Since:
    6.9.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ComponentCacheDestroyable()`

  - ### 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

    - #### ComponentCacheDestroyable

          public ComponentCacheDestroyable()

  - ### 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.