Interface PostRemoveEventListener<T>
- Type Parameters:
T
- The entity type
- All Superinterfaces:
EntityEventListener<T>
,EventListener
,io.micronaut.core.order.Ordered
Functional version or
PostRemove
event handlers.- Since:
- 2.3.0
- Author:
- graemerocher
-
Field Summary
Fields inherited from interface io.micronaut.data.event.EntityEventListener
NOOP
Fields inherited from interface io.micronaut.core.order.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
postRemove
(@NonNull EntityEventContext<T> context) A post-remove hook.void
postRemove
(T entity) A post-update hook.default boolean
supports
(RuntimePersistentEntity<T> entity, Class<? extends Annotation> eventType) Allows including or excluding a listener for a specific entity.Methods inherited from interface io.micronaut.data.event.EntityEventListener
postLoad, postPersist, postUpdate, prePersist, preQuery, preRemove, preUpdate
Methods inherited from interface io.micronaut.core.order.Ordered
getOrder
-
Method Details
-
postRemove
A post-update hook. Implementors can return false to evict the operation.- Parameters:
entity
- The entity
-
postRemove
Description copied from interface:EntityEventListener
A post-remove hook. Executed once the object has been removed.- Specified by:
postRemove
in interfaceEntityEventListener<T>
- Parameters:
context
- The context object
-
supports
Description copied from interface:EntityEventListener
Allows including or excluding a listener for a specific entity.- Specified by:
supports
in interfaceEntityEventListener<T>
- Parameters:
entity
- The entityeventType
- The event type- Returns:
- True if it is supported
-