org.springframework.data.neo4j.lifecycle
Class AuditingEventListener
java.lang.Object
org.springframework.data.neo4j.lifecycle.AuditingEventListener
- All Implemented Interfaces:
- EventListener, ApplicationListener<BeforeSaveEvent<Object>>
public class AuditingEventListener
- extends Object
- implements ApplicationListener<BeforeSaveEvent<Object>>
Event listener to populate auditing related fields on an entity about to be saved.
- Author:
- Oliver Gierke
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AuditingEventListener
public AuditingEventListener(org.springframework.data.auditing.IsNewAwareAuditingHandler<Object> auditingHandler)
- Creates a new
AuditingEventListener
using the given MappingContext
and AuditingHandler
.
- Parameters:
auditingHandler
- must not be null.
onApplicationEvent
public void onApplicationEvent(BeforeSaveEvent<Object> event)
- Specified by:
onApplicationEvent
in interface ApplicationListener<BeforeSaveEvent<Object>>
Copyright © 2013 SpringSource. All Rights Reserved.