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
in a static fashion.
Implementations will contribute hints without any knowledge of the application context
and can only use the given ClassLoader
to conditionally contribute hints.
RuntimeHintsRegistrar
can be declared as spring/aot.factories
entries;
the registrar will be processed as soon as its declaration is found in the classpath.
A standard no-arg constructor is required for implementations.
- Since:
- 6.0
- Author:
- Brian Clozel
-
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 applicationclassLoader
- the classloader, ornull
if even the system ClassLoader isn't accessible
-