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

pack-priv Class BeanDefinitionMethodGeneratorFactory

extends Object
Class Inheritance
Imports
java.util.ArrayList, .List, org.apache.commons.logging.Log, .LogFactory, org.springframework.beans.factory.aot.AotServices.Source, org.springframework.beans.factory.config.ConfigurableListableBeanFactory, org.springframework.beans.factory.support.RegisteredBean, org.springframework.core.log.LogMessage, org.springframework.lang.Nullable, org.springframework.util.Assert, .ObjectUtils

Factory used to create a BeanDefinitionMethodGenerator instance for a RegisteredBean.
Authors
Phillip Webb, Stephane Nicoll
Since
6.0
See Also
BeanDefinitionMethodGenerator, getBeanDefinitionMethodGenerator(RegisteredBean)

Field Summary

Modifier and TypeField and Description
private final AotServices<BeanRegistrationAotProcessor>
private final AotServices<BeanRegistrationExcludeFilter>
private static final Log

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
BeanDefinitionMethodGeneratorFactory(AotServices.Loader
the AOT services loader to use
loader
)

Create a new BeanDefinitionMethodGeneratorFactory backed by the given AotServices.Loader.

Method Summary

Modifier and TypeMethod and Description
private List<BeanRegistrationAotContribution>
pack-priv BeanDefinitionMethodGenerator

Returns:

a new BeanDefinitionMethodGenerator instance or null
getBeanDefinitionMethodGenerator
(RegisteredBean
the registered bean
registeredBean
,
String
the property name that this bean belongs to
currentPropertyName
)

Return a BeanDefinitionMethodGenerator for the given RegisteredBean defined with the specified property name, or null if the registered bean is excluded by a BeanRegistrationExcludeFilter.

pack-priv BeanDefinitionMethodGenerator

Returns:

a new BeanDefinitionMethodGenerator instance or null
getBeanDefinitionMethodGenerator
(RegisteredBean
the registered bean
registeredBean
)

Return a BeanDefinitionMethodGenerator for the given RegisteredBean or null if the registered bean is excluded by a BeanRegistrationExcludeFilter.

private boolean
isExcluded(RegisteredBean registeredBean)

private boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aotProcessorsback to summary
private final AotServices<BeanRegistrationAotProcessor> aotProcessors
excludeFiltersback to summary
private final AotServices<BeanRegistrationExcludeFilter> excludeFilters
loggerback to summary
private static final Log logger

Constructor Detail

BeanDefinitionMethodGeneratorFactoryback to summary
pack-priv BeanDefinitionMethodGeneratorFactory(ConfigurableListableBeanFactory beanFactory)

Create a new BeanDefinitionMethodGeneratorFactory backed by the given ConfigurableListableBeanFactory.

Parameters
beanFactory:ConfigurableListableBeanFactory

the bean factory use

BeanDefinitionMethodGeneratorFactoryback to summary
pack-priv BeanDefinitionMethodGeneratorFactory(AotServices.Loader loader)

Create a new BeanDefinitionMethodGeneratorFactory backed by the given AotServices.Loader.

Parameters
loader:AotServices.Loader

the AOT services loader to use

Method Detail

getAotContributionsback to summary
private List<BeanRegistrationAotContribution> getAotContributions(RegisteredBean registeredBean)
getBeanDefinitionMethodGeneratorback to summary
pack-priv BeanDefinitionMethodGenerator getBeanDefinitionMethodGenerator(RegisteredBean registeredBean, String currentPropertyName)

Return a BeanDefinitionMethodGenerator for the given RegisteredBean defined with the specified property name, or null if the registered bean is excluded by a BeanRegistrationExcludeFilter. The resulting BeanDefinitionMethodGenerator will include all BeanRegistrationAotProcessor provided contributions.

Parameters
registeredBean:RegisteredBean

the registered bean

currentPropertyName:String

the property name that this bean belongs to

Returns:BeanDefinitionMethodGenerator

a new BeanDefinitionMethodGenerator instance or null

Annotations
@Nullable
getBeanDefinitionMethodGeneratorback to summary
pack-priv BeanDefinitionMethodGenerator getBeanDefinitionMethodGenerator(RegisteredBean registeredBean)

Return a BeanDefinitionMethodGenerator for the given RegisteredBean or null if the registered bean is excluded by a BeanRegistrationExcludeFilter. The resulting BeanDefinitionMethodGenerator will include all BeanRegistrationAotProcessor provided contributions.

Parameters
registeredBean:RegisteredBean

the registered bean

Returns:BeanDefinitionMethodGenerator

a new BeanDefinitionMethodGenerator instance or null

Annotations
@Nullable
isExcludedback to summary
private boolean isExcluded(RegisteredBean registeredBean)
isImplicitlyExcludedback to summary
private boolean isImplicitlyExcluded(RegisteredBean registeredBean)