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 Type
    Method
    Description
    void
    onDestroyed(@NonNull BeanDestroyedEvent<T> event)
    Fired when a bean has been destroyed and all PreDestroy methods invoked.
  • Method Details

    • onDestroyed

      void onDestroyed(@NonNull BeanDestroyedEvent<T> event)
      Fired when a bean has been destroyed and all PreDestroy methods invoked.
      Parameters:
      event - The bean created event