File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
spring-core/src/main/java/org/springframework/aot/hint Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change 19
19
import org .springframework .lang .Nullable ;
20
20
21
21
/**
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.
28
29
*
29
30
* @author Brian Clozel
31
+ * @author Stephane Nicoll
30
32
* @since 6.0
31
33
*/
32
34
@ FunctionalInterface
33
35
public interface RuntimeHintsRegistrar {
34
36
35
37
/**
36
38
* 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
38
40
* @param classLoader the classloader, or {@code null} if even the system ClassLoader isn't accessible
39
41
*/
40
42
void registerHints (RuntimeHints hints , @ Nullable ClassLoader classLoader );
You can’t perform that action at this time.
0 commit comments