org.apache.struts2.dispatcher

## Class FinalizableReferenceQueueDestroyable

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

- All Implemented Interfaces:
    InternalDestroyable

      public class FinalizableReferenceQueueDestroyable
      extends Object
      implements InternalDestroyable

  Adapter that exposes `FinalizableReferenceQueue.stopAndClear()` as an `InternalDestroyable` bean, since `FinalizableReferenceQueue` has a private constructor and cannot be directly registered in the container.
  Since:
    6.9.0

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `FinalizableReferenceQueueDestroyable()`

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

    - #### FinalizableReferenceQueueDestroyable

          public FinalizableReferenceQueueDestroyable()

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