This is an automated email from the ASF dual-hosted git repository. danhaywood pushed a commit to branch CAUSEWAY-3745 in repository https://gitbox.apache.org/repos/asf/causeway.git
commit 7817369ba08514c53d5fe438e19593352f7a579d Author: Dan Haywood <[email protected]> AuthorDate: Thu May 23 18:02:03 2024 +0100 CAUSEWAY-3745: renames EntityPropertychangeSubscriber#onBulkChanging ... ... to simply #onChanging ; because it has the same semantics as the other #onChanging that it overloads. --- .../publishing/spi/EntityPropertyChangeSubscriber.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/api/applib/src/main/java/org/apache/causeway/applib/services/publishing/spi/EntityPropertyChangeSubscriber.java b/api/applib/src/main/java/org/apache/causeway/applib/services/publishing/spi/EntityPropertyChangeSubscriber.java index 05b5083a32..24e9ffa680 100644 --- a/api/applib/src/main/java/org/apache/causeway/applib/services/publishing/spi/EntityPropertyChangeSubscriber.java +++ b/api/applib/src/main/java/org/apache/causeway/applib/services/publishing/spi/EntityPropertyChangeSubscriber.java @@ -49,6 +49,16 @@ public interface EntityPropertyChangeSubscriber extends HasEnabling { */ void onChanging(EntityPropertyChange entityPropertyChange); + /** + * Receives a collection of {@link EntityPropertyChange property change event}s for the + * changing entities. + * + * <p> + * The default implementation simply delegates to {@link #onChanging(EntityPropertyChange)} for + * each, but subclasses could override in order to perform work in bulk. + * </p> + * @param entityPropertyChanges + */ default void onChanging(Can<EntityPropertyChange> entityPropertyChanges) { entityPropertyChanges.forEach(this::onChanging); }
