org.apache.struts2.dispatcher

## Interface DispatcherListener

-     public interface DispatcherListener

  A interface to tag those that want to execute code on the init and destory of a Dispatcher.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `dispatcherDestroyed(Dispatcher du)` Called when the dispatcher is destroyed
    `void` | `dispatcherInitialized(Dispatcher du)` Called when the dispatcher is initialized

- - ### Method Detail

    - #### dispatcherInitialized

          void dispatcherInitialized(Dispatcher du)

      Called when the dispatcher is initialized
      Parameters:
        `du` - The dispatcher instance

    - #### dispatcherDestroyed

          void dispatcherDestroyed(Dispatcher du)

      Called when the dispatcher is destroyed
      Parameters:
        `du` - The dispatcher instance

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