Package io.micronaut.data.runtime.event
Class DefaultEntityEventContext<T>
- java.lang.Object
-
- io.micronaut.data.runtime.event.DefaultEntityEventContext<T>
-
- Type Parameters:
T- The entity type
- All Implemented Interfaces:
io.micronaut.data.event.EntityEventContext<T>,io.micronaut.data.event.PersistenceEventContext<T>
@Internal public class DefaultEntityEventContext<T> extends java.lang.Object implements io.micronaut.data.event.EntityEventContext<T>Default implementation of theEntityEventContextinterface.- Since:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description DefaultEntityEventContext(io.micronaut.data.model.runtime.RuntimePersistentEntity<T> persistentEntity, T entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TgetEntity()io.micronaut.data.model.runtime.RuntimePersistentEntity<T>getPersistentEntity()<P> voidsetProperty(io.micronaut.core.beans.BeanProperty<T,P> property, P newValue)
-
-
-
Method Detail
-
getEntity
@NonNull public T getEntity()
- Specified by:
getEntityin interfaceio.micronaut.data.event.EntityEventContext<T>
-
setProperty
public <P> void setProperty(io.micronaut.core.beans.BeanProperty<T,P> property, P newValue)
- Specified by:
setPropertyin interfaceio.micronaut.data.event.EntityEventContext<T>
-
-