public class AuditingEventListener extends Object implements org.springframework.context.ApplicationListener<BeforeConvertEvent<Object>>
Constructor and Description |
---|
AuditingEventListener(org.springframework.beans.factory.ObjectFactory<org.springframework.data.auditing.IsNewAwareAuditingHandler> auditingHandlerFactory)
Creates a new
AuditingEventListener using the given MappingContext and AuditingHandler
provided by the given ObjectFactory . |
Modifier and Type | Method and Description |
---|---|
void |
onApplicationEvent(BeforeConvertEvent<Object> event) |
public AuditingEventListener(org.springframework.beans.factory.ObjectFactory<org.springframework.data.auditing.IsNewAwareAuditingHandler> auditingHandlerFactory)
AuditingEventListener
using the given MappingContext
and AuditingHandler
provided by the given ObjectFactory
.auditingHandlerFactory
- must not be null.public void onApplicationEvent(BeforeConvertEvent<Object> event)
onApplicationEvent
in interface org.springframework.context.ApplicationListener<BeforeConvertEvent<Object>>
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.