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

Commit fe9fb9b

Browse files
committed
Add API links to the refdoc
1 parent 88c8c6e commit fe9fb9b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@
3838
:spring-framework-docs: https://docs.spring.io/spring-framework/docs/{spring-framework-version}/reference
3939

4040
:spring-native-repo: snapshot
41-
:spring-native-api: https://docs.spring.io/spring-native/docs/{version}/api/
41+
:spring-native-api: https://docs.spring.io/spring-native/docs/{version}/api

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ There should not really be a trigger specified on hints included `initialization
2828
Hints can be provided statically using an annotated model, or programmatically by implementing one of the callback interfaces.
2929

3030
=== Annotated Hints
31-
Annotated hints can be put on any `@Configuration`-annotated class of your application, including `@SpringBootApplication`:
31+
{spring-native-api}/org/springframework/nativex/hint/package-summary.html[Annotated hints] can be put on any `@Configuration`-annotated class of your application, including `@SpringBootApplication`:
3232

33-
* `@TypeHint` for simple reflection hints
34-
* `@NativeHint` is a container for `@TypeHint` and offer more options.
33+
* {spring-native-api}/org/springframework/nativex/hint/TypeHint.html[`@TypeHint`] for simple reflection hints
34+
* {spring-native-api}/org/springframework/nativex/hint/NativeHint.html[`@NativeHint`] is a container for `@TypeHint` and offer more options.
3535

3636
Let us take an example of an application using `WebClient` to deserialize a `Data` class with a `SuperHero` nested class using Jackson.
3737
Such process requires reflective access to the class and can be configured as shown in the following example.
@@ -53,13 +53,13 @@ Hints classes should implement `NativeConfiguration` and be registered in `META-
5353
If you need some concrete example of hints, you can {github-tree}/spring-native-configuration/src/main/java[browse ours].
5454

5555
=== Programmatic Hints
56-
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.
56+
Spring Native provides a {spring-native-api}/org/springframework/aot/context/bootstrap/generator/infrastructure/nativex/NativeConfigurationRegistry.html[programmatic registry] which exposes a high-level API for all hints.
5757

5858
Three callbacks are provided:
5959

60-
. `BeanFactoryNativeConfigurationProcessor` provides the `BeanFactory` so that it can be introspected for matching beans.
61-
. `BeanNativeConfigurationProcessor` provides a `BeanInstanceDescriptor` for each bean.
62-
. `NativeConfiguration` typically used for hints not related to beans or `BeanFactory`.
60+
. {spring-native-api}/org/springframework/aot/context/bootstrap/generator/infrastructure/nativex/BeanFactoryNativeConfigurationProcessor.html[`BeanFactoryNativeConfigurationProcessor`] provides the `BeanFactory` so that it can be introspected for matching beans.
61+
. {spring-native-api}/org/springframework/aot/context/bootstrap/generator/infrastructure/nativex/BeanNativeConfigurationProcessor.html[`BeanNativeConfigurationProcessor`] provides a `BeanInstanceDescriptor` for each bean.
62+
. {spring-native-api}/org/springframework/nativex/type/NativeConfiguration.html[`NativeConfiguration`] typically used for hints not related to beans or `BeanFactory`.
6363

6464
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.
6565

0 commit comments

Comments
 (0)