Package org.springframework.context.aot
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
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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Common settings for AOT processors. -
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The name of a system property that is made available when the processor runs. -
Constructor Summary
ModifierConstructorDescriptionprotected
Create a new processor instance with the supplied settings. -
Method Summary
Modifier and TypeMethodDescriptionprotected FileSystemGeneratedFiles
protected void
Delete the source, resource, and class output directories.protected abstract T
protected AbstractAotProcessor.Settings
Get the settings for this AOT processor.final T
process()
Run AOT processing.protected void
writeHints
(RuntimeHints hints)
-
Field Details
-
AOT_PROCESSING
The name of a system property that is made available when the processor runs.- Since:
- 6.2
- See Also:
-
-
Constructor Details
-
AbstractAotProcessor
Create a new processor instance with the supplied settings.- See Also:
-
-
Method Details
-
getSettings
Get the settings for this AOT processor. -
process
Run AOT processing.- Returns:
- the result of the processing.
-
doProcess
-
deleteExistingOutput
protected void deleteExistingOutput()Delete the source, resource, and class output directories. -
createFileSystemGeneratedFiles
-
writeHints
-