Class TestAotProcessor

java.lang.Object
org.springframework.context.aot.AbstractAotProcessor<Void>
org.springframework.test.context.aot.TestAotProcessor

public abstract class TestAotProcessor extends AbstractAotProcessor<Void>
Filesystem-based ahead-of-time (AOT) processing base implementation that scans the provided classpath roots for Spring integration test classes and then generates AOT artifacts for those test classes in the configured output directories.

Concrete implementations are typically used to kick off optimization of a test suite in a build tool.

Since:
6.0
Author:
Sam Brannen
See Also:
  • Constructor Details

    • TestAotProcessor

      protected TestAotProcessor(Set<Path> classpathRoots, AbstractAotProcessor.Settings settings)
      Create a new processor for the specified test classpath roots and common settings.
      Parameters:
      classpathRoots - the classpath roots to scan for test classes
      settings - the settings to apply
  • Method Details

    • getClasspathRoots

      protected Set<Path> getClasspathRoots()
      Get the classpath roots to scan for test classes.
    • doProcess

      protected Void doProcess()
      Trigger processing of the test classes by clearing output directories first and then performing AOT processing.
      Specified by:
      doProcess in class AbstractAotProcessor<Void>
    • performAotProcessing

      protected void performAotProcessing()
      Perform ahead-of-time processing of Spring integration test classes.

      Code, resources, and generated classes are stored in the configured output directories. In addition, run-time hints are registered for the application contexts used by the test classes as well as test infrastructure components used by the tests.