Concrete implementations should override doProcess() that kicks
off the optimization of the target, usually an application.
FileSystemGeneratedFiles, FileNativeConfigurationWriter, org.springframework.context.aot.ContextAotProcessor , org.springframework.test.context.aot.TestAotProcessor
| Modifier and Type | Class and Description |
|---|---|
| public static class | AbstractAotProcessor.Settings
Common settings for AOT processors. |
| Modifier and Type | Field and Description |
|---|---|
| private static final String | AOT_PROCESSING
The name of a system property that is made available when the processor runs. |
| private final AbstractAotProcessor. |
| Access | Constructor and Description |
|---|---|
| protected | AbstractAotProcessor(AbstractAotProcessor.
Create a new processor instance with the supplied settings. |
| Modifier and Type | Method and Description |
|---|---|
| protected FileSystemGeneratedFiles | |
| protected void | |
| private void | |
| protected abstract T | |
| private Path | |
| protected AbstractAotProcessor. | |
| public final T | |
| protected void |
| AOT_PROCESSING | back to summary |
|---|---|
| private static final String AOT_PROCESSING The name of a system property that is made available when the processor runs.
| |
| settings | back to summary |
|---|---|
| private final AbstractAotProcessor. | |
| AbstractAotProcessor | back to summary |
|---|---|
| protected AbstractAotProcessor(AbstractAotProcessor. Create a new processor instance with the supplied settings.
| |
| createFileSystemGeneratedFiles | back to summary |
|---|---|
| protected FileSystemGeneratedFiles createFileSystemGeneratedFiles() | |
| deleteExistingOutput | back to summary |
|---|---|
| protected void deleteExistingOutput() Delete the source, resource, and class output directories. | |
| deleteExistingOutput | back to summary |
|---|---|
| private void deleteExistingOutput(Path... paths) | |
| doProcess | back to summary |
|---|---|
| protected abstract T doProcess() | |
| getRoot | back to summary |
|---|---|
| private Path getRoot(GeneratedFiles. | |
| getSettings | back to summary |
|---|---|
| protected AbstractAotProcessor. Get the settings for this AOT processor. | |
| process | back to summary |
|---|---|
| public final T process() Run AOT processing.
| |
| writeHints | back to summary |
|---|---|
| protected void writeHints(RuntimeHints hints) | |
| Modifier and Type | Class and Description |
|---|---|
| public static class | AbstractAotProcessor.Settings.Builder
Fluent builder API for |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final Path | |
| private final String | |
| private final Path | |
| private final Path |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static AbstractAotProcessor. | |
| public String | |
| public Path | |
| public String | |
| public Path | |
| public Path |
| artifactId | back to summary |
|---|---|
| private final String artifactId | |
| classOutput | back to summary |
|---|---|
| private final Path classOutput | |
| groupId | back to summary |
|---|---|
| private final String groupId | |
| resourceOutput | back to summary |
|---|---|
| private final Path resourceOutput | |
| sourceOutput | back to summary |
|---|---|
| private final Path sourceOutput | |
| Settings | back to summary |
|---|---|
| private Settings(Path sourceOutput, Path resourceOutput, Path classOutput, String groupId, String artifactId) | |
| builder | back to summary |
|---|---|
| public static AbstractAotProcessor. | |
| getArtifactId | back to summary |
|---|---|
| public String getArtifactId() Get the artifact ID of the application. | |
| getClassOutput | back to summary |
|---|---|
| public Path getClassOutput() Get the output directory for generated classes. | |
| getGroupId | back to summary |
|---|---|
| public String getGroupId() Get the group ID of the application. | |
| getResourceOutput | back to summary |
|---|---|
| public Path getResourceOutput() Get the output directory for generated resources. | |
| getSourceOutput | back to summary |
|---|---|
| public Path getSourceOutput() Get the output directory for generated sources. | |
Settings.
| Modifier and Type | Field and Description |
|---|---|
| private String | |
| private Path | |
| private String | |
| private Path | |
| private Path |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public AbstractAotProcessor. | Returns: this builder for method chainingthe artifact ID of the application, used to locate
artifactId)native-image.propertiesSet the artifact ID of the application. |
| public AbstractAotProcessor. | |
| public AbstractAotProcessor. | Returns: this builder for method chainingthe location of generated classes classOutput)Set the output directory for generated classes. |
| public AbstractAotProcessor. | |
| public AbstractAotProcessor. | Returns: this builder for method chainingthe location of generated resources resourceOutput)Set the output directory for generated resources. |
| public AbstractAotProcessor. | Returns: this builder for method chainingthe location of generated sources sourceOutput)Set the output directory for generated sources. |
| artifactId | back to summary |
|---|---|
| private String artifactId
| |
| classOutput | back to summary |
|---|---|
| private Path classOutput
| |
| groupId | back to summary |
|---|---|
| private String groupId
| |
| resourceOutput | back to summary |
|---|---|
| private Path resourceOutput
| |
| sourceOutput | back to summary |
|---|---|
| private Path sourceOutput
| |
| Builder | back to summary |
|---|---|
| private Builder() | |
| artifactId | back to summary |
|---|---|
| public AbstractAotProcessor. Set the artifact ID of the application.
| |
| build | back to summary |
|---|---|
| public AbstractAotProcessor. Build the | |
| classOutput | back to summary |
|---|---|
| public AbstractAotProcessor. Set the output directory for generated classes.
| |
| groupId | back to summary |
|---|---|
| public AbstractAotProcessor. Set the group ID of the application.
| |
| resourceOutput | back to summary |
|---|---|
| public AbstractAotProcessor. Set the output directory for generated resources.
| |
| sourceOutput | back to summary |
|---|---|
| public AbstractAotProcessor. Set the output directory for generated sources.
| |