org.springframework.data.mongodb.core.mapping.event
Class AuditingEventListener
java.lang.Object
org.springframework.data.mongodb.core.mapping.event.AuditingEventListener
- All Implemented Interfaces:
- EventListener, ApplicationListener<BeforeConvertEvent<Object>>
public class AuditingEventListener
- extends Object
- implements ApplicationListener<BeforeConvertEvent<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(IsNewAwareAuditingHandler<Object> auditingHandler)
- Creates a new
AuditingEventListener
using the given MappingContext
and AuditingHandler
.
- Parameters:
auditingHandler
- must not be null.
onApplicationEvent
public void onApplicationEvent(BeforeConvertEvent<Object> event)
- Specified by:
onApplicationEvent
in interface ApplicationListener<BeforeConvertEvent<Object>>
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.