public class LoggingEventListener extends AbstractMongoEventListener<Object>
ApplicationListener for Mongo mapping events logging the events.| Constructor and Description |
|---|
LoggingEventListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onAfterConvert(com.mongodb.DBObject dbo,
Object source)
Captures raw
DBObject and converted domain type after conversion. |
void |
onAfterDelete(com.mongodb.DBObject dbo)
Captures
DBObject after delete. |
void |
onAfterLoad(com.mongodb.DBObject dbo)
Captures raw
DBObject when read from MongoDB. |
void |
onAfterSave(Object source,
com.mongodb.DBObject dbo)
Captures source element and
DBObject representation after save. |
void |
onBeforeConvert(Object source)
Captures source element before conversion.
|
void |
onBeforeDelete(com.mongodb.DBObject dbo)
Capture
DBObject before delete. |
void |
onBeforeSave(Object source,
com.mongodb.DBObject dbo)
Captures source element and
DBObject representation before save. |
onAfterConvert, onAfterDelete, onAfterLoad, onAfterSave, onApplicationEvent, onBeforeConvert, onBeforeDelete, onBeforeSavepublic void onBeforeConvert(Object source)
AbstractMongoEventListeneronBeforeConvert in class AbstractMongoEventListener<Object>source - will never be null.public void onBeforeSave(Object source, com.mongodb.DBObject dbo)
AbstractMongoEventListenerDBObject representation before save.onBeforeSave in class AbstractMongoEventListener<Object>source - will never be null.dbo - can be null.public void onAfterSave(Object source, com.mongodb.DBObject dbo)
AbstractMongoEventListenerDBObject representation after save.onAfterSave in class AbstractMongoEventListener<Object>source - will never be null.dbo - can be null.public void onAfterLoad(com.mongodb.DBObject dbo)
AbstractMongoEventListenerDBObject when read from MongoDB.onAfterLoad in class AbstractMongoEventListener<Object>dbo - can be null.public void onAfterConvert(com.mongodb.DBObject dbo,
Object source)
AbstractMongoEventListenerDBObject and converted domain type after conversion.onAfterConvert in class AbstractMongoEventListener<Object>dbo - can be null.source - will never be null.public void onAfterDelete(com.mongodb.DBObject dbo)
AbstractMongoEventListenerDBObject after delete.onAfterDelete in class AbstractMongoEventListener<Object>dbo - can be null.public void onBeforeDelete(com.mongodb.DBObject dbo)
AbstractMongoEventListenerDBObject before delete.onBeforeDelete in class AbstractMongoEventListener<Object>dbo - can be null.Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.