Top Description Constructors Methods
org.springframework.beans.factory.aot

pack-priv Class BeanRegistrationsAotProcessor

extends Object
implements BeanFactoryInitializationAotProcessor
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor
Imports
java.util.LinkedHashMap, .Map, org.springframework.beans.factory.aot.BeanRegistrationsAotContribution.Registration, org.springframework.beans.factory.config.ConfigurableListableBeanFactory, org.springframework.beans.factory.support.RegisteredBean, org.springframework.lang.Nullable

BeanFactoryInitializationAotProcessor that contributes code to register beans.
Authors
Phillip Webb, Sebastien Deleuze, Stephane Nicoll, Brian Clozel
Since
6.0

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public BeanRegistrationsAotContribution
processAheadOfTime(ConfigurableListableBeanFactory
the bean factory to process
beanFactory
)

Implements org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor.processAheadOfTime.

Process the given ConfigurableListableBeanFactory instance ahead-of-time and return a contribution or null.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

BeanRegistrationsAotProcessorback to summary
pack-priv BeanRegistrationsAotProcessor()

Method Detail

processAheadOfTimeback to summary
public BeanRegistrationsAotContribution processAheadOfTime(ConfigurableListableBeanFactory beanFactory)

Implements org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor.processAheadOfTime.

Doc from org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor.processAheadOfTime.

Process the given ConfigurableListableBeanFactory instance ahead-of-time and return a contribution or null.

Processors are free to use any techniques they like to analyze the given bean factory. Most typically use reflection to find fields or methods to use in the contribution. Contributions typically generate source code or resource files that can be used when the AOT optimized application runs.

If the given bean factory does not contain anything that is relevant to the processor, this method should return a null contribution.

Parameters
beanFactory:ConfigurableListableBeanFactory

the bean factory to process

Returns:BeanRegistrationsAotContribution

a BeanFactoryInitializationAotContribution or null

Annotations
@Override
@Nullable