Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Commit 2552439

Browse files
committed
Refine Native Hints documentation
This commit mentions `NativeConfiguration` as the third callback available and specify a warning to avoid putting spring-aot in the runtime classpath.
1 parent 2e10163 commit 2552439

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spring-native-docs/src/main/asciidoc/native-hints.adoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,13 @@ If you need some concrete example of hints, you can {github-tree}/spring-native-
5555
=== Programmatic Hints
5656
Spring Native provides a {github-tree}/spring-aot/src/main/java/org/springframework/aot/context/bootstrap/generator/infrastructure/nativex/NativeConfigurationRegistry.java[programmatic registry] which exposes a high-level API for all hints.
5757

58-
Two callbacks are provided:
58+
Three callbacks are provided:
5959

6060
. `BeanFactoryNativeConfigurationProcessor` provides the `BeanFactory` so that it can be introspected for matching beans.
6161
. `BeanNativeConfigurationProcessor` provides a `BeanInstanceDescriptor` for each bean.
62+
. `NativeConfiguration` typically used for hints not related to beans or `BeanFactory`.
63+
64+
WARNING: Those types are available via the `org.springframework.experimental:spring-aot` dependency which should not be in the runtime classpath, so you should typically use `<scope>provided</scope>` with Maven or `compileOnly` configuration with Gradle.
6265

6366
`BeanFactoryNativeConfigurationProcessor` should be used when a particular aspect of matching beans is requested.
6467
A typical example is automatically processing beans having a certain annotation.

0 commit comments

Comments
 (0)