Class AbstractAotProcessor<T>

java.lang.Object
org.springframework.context.aot.AbstractAotProcessor<T>
Type Parameters:
T - the type of the processing result
Direct Known Subclasses:
ContextAotProcessor, TestAotProcessor

public abstract class AbstractAotProcessor<T> extends Object
Abstract base class for filesystem-based ahead-of-time (AOT) processing.

Concrete implementations should override doProcess() that kicks off the optimization of the target, usually an application.

Since:
6.0
Author:
Stephane Nicoll, Andy Wilkinson, Phillip Webb, Sam Brannen
See Also:
  • Field Details

    • AOT_PROCESSING

      public static final String AOT_PROCESSING
      The name of a system property that is made available when the processor runs.
      Since:
      6.2
      See Also:
  • Constructor Details

  • Method Details

    • getSettings

      protected AbstractAotProcessor.Settings getSettings()
      Get the settings for this AOT processor.
    • process

      public final T process()
      Run AOT processing.
      Returns:
      the result of the processing.
    • doProcess

      protected abstract T doProcess()
    • deleteExistingOutput

      protected void deleteExistingOutput()
      Delete the source, resource, and class output directories.
    • createFileSystemGeneratedFiles

      protected FileSystemGeneratedFiles createFileSystemGeneratedFiles()
    • writeHints

      protected void writeHints(RuntimeHints hints)