Skip to content

Commit bc89d93

Browse files
committed
Document TypedPropertyPathFeature.
1 parent 86db7f9 commit bc89d93

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/antora/modules/ROOT/pages/property-paths.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,5 +201,7 @@ Limiting property paths to a specific domain type that is used within the curren
201201
+
202202
Whenever accepting or providing multiple property paths, consider using `TypedPropertyPath<T, ?>` to allow for properties within the context of the owning type `T` to limit property paths to a common owning type.
203203

204-
NOTE: When using Graal Native Image compilation, you need to provide reachability metadata for serializable `TypedPropertyPath` lambdas.
205-
When using lambda expressions instead of method references you will have to include the Java source code of the class containing the lambda expression in the native image configuration.
204+
NOTE: Graal Native Image compilation requires reachability metadata for serializable `TypedPropertyPath` lambdas.
205+
Spring Data ships a built-in https://www.graalvm.org/sdk/javadoc/org/graalvm/nativeimage/hosted/Feature.html[feature] through `org.springframework.data.core.TypedPropertyPathFeature`.
206+
The feature is auto-activated and registers required serialization- and reflection metadata for lambda parsing and referenced reflective members (fields and methods).
207+
Note also, when using lambda expressions instead of method references you will have to include the Java source code of the class containing the lambda expression in the native image configuration yourself.

0 commit comments

Comments
 (0)