From 024f87906bc586c18db833e4687a71551e102852 Mon Sep 17 00:00:00 2001 From: Mark Paluch Date: Wed, 6 May 2020 12:27:25 +0200 Subject: [PATCH] DATACMNS-1717 - Mention performance behavior of Lambda EntityCallbacks in reference documentation. --- src/main/asciidoc/entity-callbacks.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/asciidoc/entity-callbacks.adoc b/src/main/asciidoc/entity-callbacks.adoc index 497b2f9c4..b9a31a972 100644 --- a/src/main/asciidoc/entity-callbacks.adoc +++ b/src/main/asciidoc/entity-callbacks.adoc @@ -158,6 +158,6 @@ class UserCallbacks implements BeforeConvertCallback, ---- <1> `BeforeSaveCallback` receiving its order from the `@Order` annotation. <2> `BeforeSaveCallback` receiving its order via the `Ordered` interface implementation. -<3> `BeforeSaveCallback` using a lambda expression. Unordered by default and invoked last. +<3> `BeforeSaveCallback` using a lambda expression. Unordered by default and invoked last. Note that callbacks implemented by a lambda expression do not expose typing information hence invoking these with a non-assignable entity affects the callback throughput. Use a `class` or `enum` to enable type filtering for the callback bean. <4> Combine multiple entity callback interfaces in a single implementation class. ====