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 TypeMethodDescriptionvoidregisterHints(RuntimeHints hints, ClassLoader classLoader) Contribute hints to the givenRuntimeHintsinstance.
-
Method Details
-
registerHints
Contribute hints to the givenRuntimeHintsinstance.- Parameters:
hints- the hints contributed so far for the applicationclassLoader- the classloader, ornullif even the system ClassLoader isn't accessible
-