Browse Source

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

pull/441/head
Mark Paluch 6 years ago
parent
commit
024f87906b
No known key found for this signature in database
GPG Key ID: 51A00FA751B91849
  1. 2
      src/main/asciidoc/entity-callbacks.adoc

2
src/main/asciidoc/entity-callbacks.adoc

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

Loading…
Cancel
Save