Interface AotTestExecutionListener
- All Superinterfaces:
TestExecutionListener
- All Known Implementing Classes:
SqlScriptsTestExecutionListener
AotTestExecutionListener is an extension of the TestExecutionListener
SPI that allows a listener to optionally provide ahead-of-time (AOT) support.- Since:
- 6.0
- Author:
- Sam Brannen
-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessAheadOfTime(org.springframework.aot.hint.RuntimeHints runtimeHints, Class<?> testClass, ClassLoader classLoader) Process the supplied test class ahead-of-time using the givenRuntimeHintsinstance.Methods inherited from interface org.springframework.test.context.TestExecutionListener
afterTestClass, afterTestExecution, afterTestMethod, beforeTestClass, beforeTestExecution, beforeTestMethod, prepareTestInstance
-
Method Details
-
processAheadOfTime
void processAheadOfTime(org.springframework.aot.hint.RuntimeHints runtimeHints, Class<?> testClass, ClassLoader classLoader) Process the supplied test class ahead-of-time using the givenRuntimeHintsinstance.If possible, implementations should use the specified
ClassLoaderto determine if hints have to be contributed.- Parameters:
runtimeHints- theRuntimeHintsto usetestClass- the test class to processclassLoader- the classloader to use
-