Concrete implementations are typically used to kick off optimization of an application in a build tool.
org.springframework.test.context.aot.TestAotProcessor
| Modifier and Type | Field and Description |
|---|---|
| private final Class |
| Access | Constructor and Description |
|---|---|
| protected | ContextAotProcessor(Class<?>
the application entry point (class with a applicationClass, AbstractAotProcessor.main() method)the settings to apply settingsCreate a new processor for the specified application entry point and common settings. |
| Modifier and Type | Method and Description |
|---|---|
| protected ClassNameGenerator | Returns: the class name generatorCallback to customize the |
| protected ClassName | Returns: theClassName of the ApplicationContextInitializer
entry pointImplements abstract org. Invoke the processing by clearing output directories first, followed by
|
| protected Class | |
| protected List | Returns: the native image options to contributethe fully qualified class name of the application
entry point applicationClassName)Return the native image arguments to use. |
| protected ClassName | performAotProcessing(GenericApplicationContext
the context to process applicationContext)Perform ahead-of-time processing of the specified context. |
| protected abstract GenericApplicationContext | Returns: a non-refreshedGenericApplicationContextPrepare the |
| private void | registerEntryPointHint(DefaultGenerationContext generationContext, ClassName generatedInitializerClassName)
|
| private void |
| applicationClass | back to summary |
|---|---|
| private final Class<?> applicationClass | |
| ContextAotProcessor | back to summary |
|---|---|
| protected ContextAotProcessor(Class<?> applicationClass, AbstractAotProcessor. Create a new processor for the specified application entry point and common settings.
| |
| createClassNameGenerator | back to summary |
|---|---|
| protected ClassNameGenerator createClassNameGenerator() Callback to customize the By default, a standard
| |
| doProcess | back to summary |
|---|---|
| protected ClassName doProcess() Implements abstract org. Invoke the processing by clearing output directories first, followed by
| |
| getApplicationClass | back to summary |
|---|---|
| protected Class Get the application entry point (typically a class with a | |
| getDefaultNativeImageArguments | back to summary |
|---|---|
| protected List Return the native image arguments to use. By default, the main class to use, as well as standard application flags are added. If the returned list is empty, no | |
| performAotProcessing | back to summary |
|---|---|
| protected ClassName performAotProcessing(GenericApplicationContext applicationContext) Perform ahead-of-time processing of the specified context. Code, resources, and generated classes are stored in the configured output directories. In addition, run-time hints are registered for the application and its entry point.
| |
| prepareApplicationContext | back to summary |
|---|---|
| protected abstract GenericApplicationContext prepareApplicationContext(Class<?> applicationClass) Prepare the
| |
| registerEntryPointHint | back to summary |
|---|---|
| private void registerEntryPointHint(DefaultGenerationContext generationContext, ClassName generatedInitializerClassName) | |
| writeNativeImageProperties | back to summary |
|---|---|
| private void writeNativeImageProperties(List<String> args) | |