Top Description Inners Fields Constructors Methods
org.springframework.aop.aspectj.annotation

pack-priv Class AspectJAdvisorBeanRegistrationAotProcessor

extends Object
implements BeanRegistrationAotProcessor
Class Inheritance
All Implemented Interfaces
org.springframework.beans.factory.aot.BeanRegistrationAotProcessor
Imports
org.springframework.aot.generate.GenerationContext, org.springframework.aot.hint.MemberCategory, org.springframework.beans.factory.aot.BeanRegistrationAotContribution, .BeanRegistrationAotProcessor, .BeanRegistrationCode, org.springframework.beans.factory.support.RegisteredBean, org.springframework.util.ClassUtils

An AOT BeanRegistrationAotProcessor that detects the presence of classes compiled with AspectJ and adds the related required field hints.
Author
Sebastien Deleuze
Since
6.1

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Modifier and TypeField and Description
private static final boolean

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public BeanRegistrationAotContribution
processAheadOfTime(RegisteredBean
the registered bean to process
registeredBean
)

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

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

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

aspectjPresentback to summary
private static final boolean aspectjPresent

Constructor Detail

AspectJAdvisorBeanRegistrationAotProcessorback to summary
pack-priv AspectJAdvisorBeanRegistrationAotProcessor()

Method Detail

processAheadOfTimeback to summary
public BeanRegistrationAotContribution processAheadOfTime(RegisteredBean registeredBean)

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

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

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

Processors are free to use any techniques they like to analyze the given instance. 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 instance isn't relevant to the processor, it should return a null contribution.

Parameters
registeredBean:RegisteredBean

the registered bean to process

Returns:BeanRegistrationAotContribution

a BeanRegistrationAotContribution or null

Annotations
@Override
org.springframework.aop.aspectj.annotation back to summary

private Class AspectJAdvisorBeanRegistrationAotProcessor.AspectJAdvisorContribution

extends Object
implements BeanRegistrationAotContribution
Class Inheritance
  • java.lang.Object
  • org.springframework.aop.aspectj.annotation.AspectJAdvisorBeanRegistrationAotProcessor.AspectJAdvisorContribution
All Implemented Interfaces
org.springframework.beans.factory.aot.BeanRegistrationAotContribution

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 generation context
generationContext
,
BeanRegistrationCode
the generated registration
beanRegistrationCode
)

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

Apply this contribution to the given BeanRegistrationCode.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

beanClassback to summary
private final Class<?> beanClass

Constructor Detail

AspectJAdvisorContributionback to summary
public AspectJAdvisorContribution(Class<?> beanClass)

Method Detail

applyToback to summary
public void applyTo(GenerationContext generationContext, BeanRegistrationCode beanRegistrationCode)

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

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

Apply this contribution to the given BeanRegistrationCode.

Parameters
generationContext:GenerationContext

the generation context

beanRegistrationCode:BeanRegistrationCode

the generated registration

Annotations
@Override