Interface AfterConvertCallback<T>

All Superinterfaces:
EntityCallback<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface AfterConvertCallback<T> extends EntityCallback<T>
Callback being invoked after a domain object is materialized from a Document when reading results.
Since:
3.0
Author:
Roman Puchkovskiy, Mark Paluch
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    onAfterConvert(T entity, org.bson.Document document, String collection)
    Entity callback method invoked after a domain object is materialized from a Document.
  • Method Details

    • onAfterConvert

      T onAfterConvert(T entity, org.bson.Document document, String collection)
      Entity callback method invoked after a domain object is materialized from a Document. Can return either the same or a modified instance of the domain object.
      Parameters:
      entity - the domain object (the result of the conversion).
      document - must not be null.
      collection - name of the collection.
      Returns:
      the domain object that is the result of reading it from the Document.