Skip to content

Commit 1e5f4f8

Browse files
committed
Polish
1 parent 3637228 commit 1e5f4f8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

spring-core/src/main/java/org/springframework/aot/hint/RuntimeHintsRegistrar.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,24 @@
1919
import org.springframework.lang.Nullable;
2020

2121
/**
22-
* Contract for registering {@link RuntimeHints} in a static fashion.
23-
* <p>Implementations will contribute hints without any knowledge of the application context
24-
* and can only use the given {@link ClassLoader} to conditionally contribute hints.
25-
* <p>{@code RuntimeHintsRegistrar} can be declared as {@code spring/aot.factories} entries;
26-
* the registrar will be processed as soon as its declaration is found in the classpath.
27-
* A standard no-arg constructor is required for implementations.
22+
* Contract for registering {@link RuntimeHints} based on the {@link ClassLoader}
23+
* of the deployment unit. Implementations should, if possible, use the specified
24+
* {@link ClassLoader} to determine if hints have to be contributed.
25+
*
26+
* <p>Implementations of this interface can be registered statically in
27+
* {@code META-INF/spring/aot.factories} by using the FQN of this interface as
28+
* the key. A standard no-arg constructor is required for implementations.
2829
*
2930
* @author Brian Clozel
31+
* @author Stephane Nicoll
3032
* @since 6.0
3133
*/
3234
@FunctionalInterface
3335
public interface RuntimeHintsRegistrar {
3436

3537
/**
3638
* Contribute hints to the given {@link RuntimeHints} instance.
37-
* @param hints the hints contributed so far for the application
39+
* @param hints the hints contributed so far for the deployment unit
3840
* @param classLoader the classloader, or {@code null} if even the system ClassLoader isn't accessible
3941
*/
4042
void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader);

0 commit comments

Comments
 (0)