Top Description Inners Fields Constructors Methods
org.springframework.context.aot

pack-priv Class ReflectiveProcessorBeanFactoryInitializationAotProcessor

extends Object
implements BeanFactoryInitializationAotProcessor
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.aot.BeanFactoryInitializationAotProcessor
Imports
java.util.Arrays, org.springframework.aot.generate.GenerationContext, org.springframework.aot.hint.RuntimeHints, org.springframework.aot.hint.annotation.Reflective, .ReflectiveProcessor, .ReflectiveRuntimeHintsRegistrar, org.springframework.beans.factory.aot.BeanFactoryInitializationAotContribution, .BeanFactoryInitializationAotProcessor, .BeanFactoryInitializationCode, org.springframework.beans.factory.config.ConfigurableListableBeanFactory, org.springframework.beans.factory.support.RegisteredBean

AOT BeanFactoryInitializationAotProcessor that detects the presence of @Reflective on annotated elements of all registered beans and invokes the underlying ReflectiveProcessor implementations.
Authors
Stephane Nicoll, Sebastien Deleuze

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final ReflectiveRuntimeHintsRegistrar

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public BeanFactoryInitializationAotContribution
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

Field Detail

REGISTRARback to summary
private static final ReflectiveRuntimeHintsRegistrar REGISTRAR

Constructor Detail

ReflectiveProcessorBeanFactoryInitializationAotProcessorback to summary
pack-priv ReflectiveProcessorBeanFactoryInitializationAotProcessor()

Method Detail

processAheadOfTimeback to summary
public BeanFactoryInitializationAotContribution 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:BeanFactoryInitializationAotContribution

a BeanFactoryInitializationAotContribution or null

Annotations
@Override
org.springframework.context.aot back to summary

private Class ReflectiveProcessorBeanFactoryInitializationAotProcessor.ReflectiveProcessorBeanFactoryInitializationAotContribution

extends Object
implements BeanFactoryInitializationAotContribution
Class Inheritance
  • java.lang.Object
  • org.springframework.context.aot.ReflectiveProcessorBeanFactoryInitializationAotProcessor.ReflectiveProcessorBeanFactoryInitializationAotContribution
All Implemented Interfaces
org.springframework.beans.factory.aot.BeanFactoryInitializationAotContribution

Field Summary

Modifier and TypeField and Description
private final Class<?>[]

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
applyTo(GenerationContext
the active generation context
generationContext
,
BeanFactoryInitializationCode
the bean factory initialization code
beanFactoryInitializationCode
)

Implements org.springframework.beans.factory.aot.BeanFactoryInitializationAotContribution.applyTo.

Apply this contribution to the given BeanFactoryInitializationCode.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

typesback to summary
private final Class<?>[] types

Constructor Detail

ReflectiveProcessorBeanFactoryInitializationAotContributionback to summary
public ReflectiveProcessorBeanFactoryInitializationAotContribution(Class<?>[] types)

Method Detail

applyToback to summary
public void applyTo(GenerationContext generationContext, BeanFactoryInitializationCode beanFactoryInitializationCode)

Implements org.springframework.beans.factory.aot.BeanFactoryInitializationAotContribution.applyTo.

Doc from org.springframework.beans.factory.aot.BeanFactoryInitializationAotContribution.applyTo.

Apply this contribution to the given BeanFactoryInitializationCode.

Parameters
generationContext:GenerationContext

the active generation context

beanFactoryInitializationCode:BeanFactoryInitializationCode

the bean factory initialization code

Annotations
@Override