Package io.micronaut.context.event
Interface BeanDestroyedEventListener<T>
- Type Parameters:
T
- The event type
- All Superinterfaces:
EventListener
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Indexed(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.
- Since:
- 3.0.0
- Author:
- Graeme Rocher
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onDestroyed
(@NonNull BeanDestroyedEvent<T> event) Fired when a bean has been destroyed and allPreDestroy
methods invoked.
-
Method Details
-
onDestroyed
Fired when a bean has been destroyed and allPreDestroy
methods invoked.- Parameters:
event
- The bean created event
-