CausewayEntityListener

EntityListener class for listing with the javax.persistence.EntityListeners annotation, to support injection point resolving for entities, and to notify ObjectLifecyclePublisher of changes.

Instances of this class are not managed by Spring, but by the persistence layer.

The particular persistence layer implementation in use needs to be configured, with a BeanManager, that is able to resolve injection points for this EntityListener.

API

CausewayEntityListener.java
class CausewayEntityListener {
  void onPrePersist(Object entityPojo)
  void onPostLoad(Object entityPojo)
  void onPreUpdate(Object entityPojo)
  void onPreRemove(Object entityPojo)
  void onPostPersist(Object entityPojo)
  void onPostUpdate(Object entityPojo)
  void onPostRemove(Object entityPojo)
}