Mention @ImportRuntimeHints in RuntimeHintsRegistrar Javadoc

Closes gh-29337
This commit is contained in:
Sébastien Deleuze 2022-10-18 12:24:46 +02:00
parent 7df8b59a7f
commit 3d83db6abb
1 changed files with 4 additions and 3 deletions

View File

@ -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.
*
* <p>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.
* <p>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