Package org.springframework.aot.hint
Interface RuntimeHintsRegistrar
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Contract for registering
RuntimeHints
based on the ClassLoader
of the deployment unit. Implementations should, if possible, use the specified
ClassLoader
to determine if hints have to be contributed.
Implementations of this interface can be registered dynamically by using
@ImportRuntimeHints
or statically in META-INF/spring/aot.factories
by using the FQN of this
interface as the key. A standard no-arg constructor is required for implementations.
- Since:
- 6.0
- Author:
- Brian Clozel, Stephane Nicoll
-
Method Summary
Modifier and TypeMethodDescriptionvoid
registerHints
(RuntimeHints hints, ClassLoader classLoader) Contribute hints to the givenRuntimeHints
instance.
-
Method Details
-
registerHints
Contribute hints to the givenRuntimeHints
instance.- Parameters:
hints
- the hints contributed so far for the deployment unitclassLoader
- the classloader, ornull
if even the system ClassLoader isn't accessible
-