T
- The event type@Indexed(value=BeanDestroyedEventListener.class) @FunctionalInterface public interface BeanDestroyedEventListener<T> extends EventListener
An event listener that is triggered after a bean is destroyed.
Allows customization of the bean destruction.
BeanDestroyedEvent
Modifier and Type | Method and Description |
---|---|
void |
onDestroyed(BeanDestroyedEvent<T> event)
Fired when a bean has been destroyed and all
PreDestroy methods invoked. |
void onDestroyed(@NonNull BeanDestroyedEvent<T> event)
PreDestroy
methods invoked.event
- The bean created event