Top Description Constructors Methods
org.springframework.context.aot

public Class ApplicationContextAotGenerator

extends Object
Class Inheritance
Imports
java.util.function.Supplier, org.springframework.aot.generate.GenerationContext, org.springframework.beans.factory.BeanFactory, org.springframework.beans.factory.support.DefaultListableBeanFactory, org.springframework.cglib.core.ReflectUtils, org.springframework.context.ApplicationContext, .ApplicationContextInitializer, org.springframework.context.support.GenericApplicationContext, org.springframework.javapoet.ClassName

Process an ApplicationContext and its BeanFactory to generate code that represents the state of the bean factory, as well as the necessary hints that can be used at runtime in a constrained environment.
Authors
Stephane Nicoll, Phillip Webb
Since
6.0

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public ClassName

Returns:

the ClassName of the ApplicationContextInitializer entry point
processAheadOfTime
(GenericApplicationContext
the non-refreshed application context to process
applicationContext
,
GenerationContext
the generation context to use
generationContext
)

Process the specified GenericApplicationContext ahead-of-time using the specified GenerationContext.

private <T> T
withCglibClassHandler(CglibClassHandler cglibClassHandler, Supplier<T> task)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

ApplicationContextAotGeneratorback to summary
public ApplicationContextAotGenerator()

Method Detail

processAheadOfTimeback to summary
public ClassName processAheadOfTime(GenericApplicationContext applicationContext, GenerationContext generationContext)

Process the specified GenericApplicationContext ahead-of-time using the specified GenerationContext.

Return the ClassName of the ApplicationContextInitializer to use to restore an optimized state of the application context.

Parameters
applicationContext:GenericApplicationContext

the non-refreshed application context to process

generationContext:GenerationContext

the generation context to use

Returns:ClassName

the ClassName of the ApplicationContextInitializer entry point

withCglibClassHandlerback to summary
private <T> T withCglibClassHandler(CglibClassHandler cglibClassHandler, Supplier<T> task)