T
- The event type@Indexed(value=BeanPreDestroyEventListener.class) @FunctionalInterface public interface BeanPreDestroyEventListener<T> extends EventListener
An event listener that is triggered before a bean is destroyed.
Allows customization of the bean destruction.
BeanPreDestroyEvent
Modifier and Type | Method and Description |
---|---|
T |
onPreDestroy(BeanPreDestroyEvent<T> event)
Fired when a bean is is about to be destroyed but before any
PreDestroy methods have been invoked. |
@NonNull T onPreDestroy(@NonNull BeanPreDestroyEvent<T> event)
PreDestroy
methods have been invoked.event
- The bean created event