@FunctionalInterface public interface BeforeDeleteCallback<T> extends EntityCallback<T>
EntityCallbackthat gets invoked before an entity is deleted. This callback gets only invoked if the method deleting the aggregate received an instance of that aggregate as an argument. Methods deleting entities by id or without any parameter don't invoke this callback.
T onBeforeDelete(T aggregate, MutableAggregateChange<T> aggregateChange)
MutableAggregateChangecontents. This method is called after converting the
MutableAggregateChange. Changes to the aggregate are not taken into account for deleting. Only transient fields of the entity should be changed in this callback.
aggregate- the aggregate.
aggregateChange- the associated
Copyright © 2017–2021 Pivotal Software, Inc.. All rights reserved.