Spring Data Neo4j

org.springframework.data.neo4j.lifecycle
Class AuditingEventListener

java.lang.Object
  extended by 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

Constructor Summary
AuditingEventListener(org.springframework.data.auditing.IsNewAwareAuditingHandler<Object> auditingHandler)
          Creates a new AuditingEventListener using the given MappingContext and AuditingHandler.
 
Method Summary
 void onApplicationEvent(BeforeSaveEvent<Object> event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

onApplicationEvent

public void onApplicationEvent(BeforeSaveEvent<Object> event)
Specified by:
onApplicationEvent in interface ApplicationListener<BeforeSaveEvent<Object>>

Spring Data Neo4j

Copyright © 2013 SpringSource. All Rights Reserved.