DATACMNS-1717 - Mention performance behavior of Lambda EntityCallbacks in reference documentation.

This commit is contained in:
Mark Paluch
2020-05-06 12:27:25 +02:00
parent 63d868f452
commit 024f87906b

View File

@@ -158,6 +158,6 @@ class UserCallbacks implements BeforeConvertCallback<User>,
----
<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.
====