org.apache.struts2.dispatcher

## Class ScopeInterceptorCacheDestroyable

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

- All Implemented Interfaces:
    InternalDestroyable

      public class ScopeInterceptorCacheDestroyable
      extends Object
      implements InternalDestroyable

  Clears `ScopeInterceptor`'s static locks map to prevent classloader leaks on hot redeploy. Separated from the interceptor itself because the locks map is static and must be cleared regardless of whether the interceptor is configured in any package.
  Since:
    6.9.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `ScopeInterceptorCacheDestroyable()`

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

    - #### ScopeInterceptorCacheDestroyable

          public ScopeInterceptorCacheDestroyable()

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