public class Neo4jAuditingEventListener
extends org.neo4j.ogm.session.event.EventListenerAdapter
implements org.neo4j.ogm.session.event.EventListener
| Constructor and Description |
|---|
Neo4jAuditingEventListener(ObjectFactory<? extends IsNewAwareAuditingHandler> auditingHandlerFactory)
Constructor used for creating an instance in the
Neo4jAuditingRegistrar to get registered in the session
"manually". |
Neo4jAuditingEventListener(ObjectFactory<? extends IsNewAwareAuditingHandler> auditingHandlerFactory,
org.neo4j.ogm.session.SessionFactory sessionFactory)
Deprecated.
this constructor could create a cyclic dependency to the session factory if this class gets registered
as a bean in the context.
|
| Modifier and Type | Method and Description |
|---|---|
void |
onPreSave(org.neo4j.ogm.session.event.Event event) |
onPostDelete, onPostSave, onPreDelete@Deprecated public Neo4jAuditingEventListener(ObjectFactory<? extends IsNewAwareAuditingHandler> auditingHandlerFactory, org.neo4j.ogm.session.SessionFactory sessionFactory)
Neo4jAuditingEventListener using the given MappingContext and AuditingHandler
provided by the given ObjectFactory. This constructor does an additional registration to the
SessionFactory. Therefore the SessionFactory must already be instantiated.auditingHandlerFactory - must not be null.public Neo4jAuditingEventListener(ObjectFactory<? extends IsNewAwareAuditingHandler> auditingHandlerFactory)
Neo4jAuditingRegistrar to get registered in the session
"manually". The registration is done within the Neo4jAuditingBeanPostProcessor.auditingHandlerFactory - AuditingHandler to hook into the preSave phase for auditing.Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.