Interface InternalDestroyable

All Known Subinterfaces:
ContextAwareDestroyable
All Known Implementing Classes:
ComponentCacheDestroyable, CompoundRootAccessor, DebugUtilsCacheDestroyable, DefaultFileManager, FinalizableReferenceQueueDestroyable, FreemarkerCacheDestroyable, JBossFileManager, OgnlCacheDestroyable, ScopeInterceptorCacheDestroyable

public interface InternalDestroyable
Internal framework interface for components that hold static state (caches, daemon threads, etc.) requiring cleanup during application undeploy to prevent classloader leaks. <p>Implementations are registered as named beans in struts-beans.xml (or plugin descriptors) with type InternalDestroyable. During Dispatcher.cleanup(), all registered implementations are discovered via Container.getInstanceNames(InternalDestroyable.class) and invoked automatically.</p> <p>This is not part of the public user API. For user/plugin lifecycle callbacks, use DispatcherListener instead.</p>
Since:
7.2.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Releases static state held by this component.
  • Method Details

    • destroy

      void destroy()
      Releases static state held by this component. Called once during Dispatcher.cleanup().