Interface AfterSaveCallback<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 AfterSaveCallback<T> extends EntityCallback<T>
An EntityCallback that gets invoked after an aggregate was saved.
Since:
1.1
Author:
Jens Schauder, Mark Paluch
  • Method Summary

    Modifier and Type
    Method
    Description
    onAfterSave(T aggregate)
    Entity callback method invoked after an aggregate root was persisted.
  • Method Details

    • onAfterSave

      T onAfterSave(T aggregate)
      Entity callback method invoked after an aggregate root was persisted. Can return either the same or a modified instance of the aggregate.
      Parameters:
      aggregate - the saved aggregate.
      Returns:
      the saved aggregate.