Interface PostRemoveEventListener<T>

  • Type Parameters:
    T - The entity type
    All Superinterfaces:
    EntityEventListener<T>, java.util.EventListener, io.micronaut.core.order.Ordered

    public interface PostRemoveEventListener<T>
    extends EntityEventListener<T>
    Functional version or PostRemove event handlers.
    Since:
    2.3.0
    Author:
    graemerocher
    • Method Detail

      • postRemove

        void postRemove​(@NonNull
                        T entity)
        A post-update hook. Implementors can return false to evict the operation.
        Parameters:
        entity - The entity
      • supports

        default boolean supports​(RuntimePersistentEntity<T> entity,
                                 java.lang.Class<? extends java.lang.annotation.Annotation> eventType)
        Description copied from interface: EntityEventListener
        Allows including or excluding a listener for a specific entity.
        Specified by:
        supports in interface EntityEventListener<T>
        Parameters:
        entity - The entity
        eventType - The event type
        Returns:
        True if it is supported