From 3d83db6abb9c713530e62a10d6e7eb0cda2f6b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Deleuze?= Date: Tue, 18 Oct 2022 12:24:46 +0200 Subject: [PATCH] Mention @ImportRuntimeHints in RuntimeHintsRegistrar Javadoc Closes gh-29337 --- .../springframework/aot/hint/RuntimeHintsRegistrar.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/spring-core/src/main/java/org/springframework/aot/hint/RuntimeHintsRegistrar.java b/spring-core/src/main/java/org/springframework/aot/hint/RuntimeHintsRegistrar.java index fac74245c1..c08aa06186 100644 --- a/spring-core/src/main/java/org/springframework/aot/hint/RuntimeHintsRegistrar.java +++ b/spring-core/src/main/java/org/springframework/aot/hint/RuntimeHintsRegistrar.java @@ -23,9 +23,10 @@ import org.springframework.lang.Nullable; * of the deployment unit. Implementations should, if possible, use the specified * {@link ClassLoader} to determine if hints have to be contributed. * - *

Implementations of this interface can be registered statically in - * {@code META-INF/spring/aot.factories} by using the FQN of this interface as - * the key. A standard no-arg constructor is required for implementations. + *

Implementations of this interface can be registered dynamically by using + * {@link org.springframework.context.annotation.ImportRuntimeHints @ImportRuntimeHints} + * or statically in {@code META-INF/spring/aot.factories} by using the FQN of this + * interface as the key. A standard no-arg constructor is required for implementations. * * @author Brian Clozel * @author Stephane Nicoll