@Singleton @Primary public class EntityEventRegistry extends java.lang.Object implements EntityEventListener<java.lang.Object>, io.micronaut.context.processor.ExecutableMethodProcessor<EntityEventMapping>
EntityEventListener interface that aggregates all other listeners.| Modifier and Type | Field and Description | 
|---|---|
| static java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> | EVENT_TYPES | 
NOOP| Constructor and Description | 
|---|
| EntityEventRegistry(io.micronaut.context.BeanContext beanContext)Default constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | postLoad(EntityEventContext<java.lang.Object> context)A post-load hook. | 
| void | postPersist(EntityEventContext<java.lang.Object> context)A post-persist hook. | 
| void | postRemove(EntityEventContext<java.lang.Object> context)A post-remove hook. | 
| void | postUpdate(EntityEventContext<java.lang.Object> context)A post-update hook. | 
| boolean | prePersist(EntityEventContext<java.lang.Object> context)A pre-persist hook. | 
| boolean | preRemove(EntityEventContext<java.lang.Object> context)A pre-remove hook. | 
| boolean | preUpdate(EntityEventContext<java.lang.Object> context)A pre-update hook. | 
| void | process(io.micronaut.inject.BeanDefinition<?> beanDefinition,
       io.micronaut.inject.ExecutableMethod<?,?> method) | 
| boolean | supports(RuntimePersistentEntity<java.lang.Object> entity,
        java.lang.Class<? extends java.lang.annotation.Annotation> eventType)Allows including or excluding a listener for a specific entity. | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpreQuerypublic static final java.util.List<java.lang.Class<? extends java.lang.annotation.Annotation>> EVENT_TYPES
public EntityEventRegistry(io.micronaut.context.BeanContext beanContext)
beanContext - The bean contextpublic boolean supports(RuntimePersistentEntity<java.lang.Object> entity, java.lang.Class<? extends java.lang.annotation.Annotation> eventType)
EntityEventListenersupports in interface EntityEventListener<java.lang.Object>entity - The entityeventType - The event typepublic boolean prePersist(@NonNull
                          EntityEventContext<java.lang.Object> context)
EntityEventListenerprePersist in interface EntityEventListener<java.lang.Object>context - The context objectpublic void postPersist(@NonNull
                        EntityEventContext<java.lang.Object> context)
EntityEventListenerpostPersist in interface EntityEventListener<java.lang.Object>context - The context objectpublic void postLoad(@NonNull
                     EntityEventContext<java.lang.Object> context)
EntityEventListenerpostLoad in interface EntityEventListener<java.lang.Object>context - The context objectpublic boolean preRemove(@NonNull
                         EntityEventContext<java.lang.Object> context)
EntityEventListenerpreRemove in interface EntityEventListener<java.lang.Object>context - The context objectpublic void postRemove(@NonNull
                       EntityEventContext<java.lang.Object> context)
EntityEventListenerpostRemove in interface EntityEventListener<java.lang.Object>context - The context objectpublic boolean preUpdate(@NonNull
                         EntityEventContext<java.lang.Object> context)
EntityEventListenerpreUpdate in interface EntityEventListener<java.lang.Object>context - The context objectpublic void postUpdate(@NonNull
                       EntityEventContext<java.lang.Object> context)
EntityEventListenerpostUpdate in interface EntityEventListener<java.lang.Object>context - The context objectpublic void process(io.micronaut.inject.BeanDefinition<?> beanDefinition,
                    io.micronaut.inject.ExecutableMethod<?,?> method)
process in interface io.micronaut.context.processor.AnnotationProcessor<EntityEventMapping,io.micronaut.inject.ExecutableMethod<?,?>>process in interface io.micronaut.context.processor.ExecutableMethodProcessor<EntityEventMapping>