|
|
|
|
@ -1205,7 +1205,13 @@ public class MongoTemplate implements InitializingBean, MongoOperations, Applica
@@ -1205,7 +1205,13 @@ public class MongoTemplate implements InitializingBean, MongoOperations, Applica
|
|
|
|
|
public T doWith(DBObject object) { |
|
|
|
|
maybeEmitEvent(new AfterLoadEvent<DBObject>(object)); |
|
|
|
|
T source = reader.read(type, object); |
|
|
|
|
maybeEmitEvent(new AfterConvertEvent<T>(object, source)); |
|
|
|
|
if (null != source) { |
|
|
|
|
maybeEmitEvent(new AfterConvertEvent<T>(object, source)); |
|
|
|
|
} else { |
|
|
|
|
if (LOGGER.isDebugEnabled()) { |
|
|
|
|
LOGGER.debug("Source object was <NULL>, so couldn't fire AfterConvertEvent<" + type.getName() + ">"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return source; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|