Interface BeanDestroyedEventListener<T>

  • Type Parameters:
    T - The event type
    All Superinterfaces:
    java.util.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 java.util.EventListener

    An event listener that is triggered after a bean is destroyed.

    Allows customization of the bean destruction.

    Since:
    3.0.0
    See Also:
    BeanDestroyedEvent
    • Method Detail

      • 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