public interface ContextAwareDestroyable extends InternalDestroyable
InternalDestroyable for components that require
ServletContext during cleanup (e.g. clearing servlet-scoped caches).
During Dispatcher.cleanup(), the discovery loop checks each
InternalDestroyable bean: if it implements this subinterface,
destroy(ServletContext) is called instead of destroy().
InternalDestroyable,
Dispatcher.cleanup()| Modifier and Type | Method and Description |
|---|---|
default void |
destroy()
Default no-op —
Dispatcher calls
destroy(ServletContext) instead when it recognises this type. |
void |
destroy(javax.servlet.ServletContext servletContext)
Releases state that requires access to the
ServletContext. |
void destroy(javax.servlet.ServletContext servletContext)
ServletContext.servletContext - the current servlet context, may be null
if the Dispatcher was created without onedefault void destroy()
Dispatcher calls
destroy(ServletContext) instead when it recognises this type.destroy in interface InternalDestroyableCopyright © 2000–2026 Apache Software Foundation. All rights reserved.