Package org.springframework.data.aot
Class ManagedTypesBeanRegistrationAotProcessor
java.lang.Object
org.springframework.data.aot.ManagedTypesBeanRegistrationAotProcessor
- All Implemented Interfaces:
org.springframework.beans.factory.aot.BeanRegistrationAotProcessor
public class ManagedTypesBeanRegistrationAotProcessor
extends Object
implements org.springframework.beans.factory.aot.BeanRegistrationAotProcessor
BeanRegistrationAotProcessor handling module ManagedTypes instances.
This AOT processor allows store specific handling of discovered types to be registered.- Since:
- 3.0
- Author:
- Christoph Strobl, John Blum
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.beans.factory.aot.BeanRegistrationAotContributioncontribute(AotContext aotContext, ManagedTypes managedTypes, org.springframework.beans.factory.support.RegisteredBean registeredBean) Hook to provide a customized flavor ofBeanRegistrationAotContribution.protected voidcontributeType(org.springframework.core.ResolvableType type, org.springframework.aot.generate.GenerationContext generationContext) Hook to contribute configuration for a given type.protected booleanprotected booleanmatchesByType(Class<?> beanType) protected booleanmatchesPrefix(String beanName) org.springframework.beans.factory.aot.BeanRegistrationAotContributionprocessAheadOfTime(org.springframework.beans.factory.support.RegisteredBean registeredBean) voidsetModuleIdentifier(String moduleIdentifier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.aot.BeanRegistrationAotProcessor
isBeanExcludedFromAotProcessing
-
Constructor Details
-
ManagedTypesBeanRegistrationAotProcessor
public ManagedTypesBeanRegistrationAotProcessor()
-
-
Method Details
-
setModuleIdentifier
-
getModuleIdentifier
-
processAheadOfTime
public org.springframework.beans.factory.aot.BeanRegistrationAotContribution processAheadOfTime(org.springframework.beans.factory.support.RegisteredBean registeredBean) - Specified by:
processAheadOfTimein interfaceorg.springframework.beans.factory.aot.BeanRegistrationAotProcessor
-
contribute
@Nullable protected org.springframework.beans.factory.aot.BeanRegistrationAotContribution contribute(AotContext aotContext, ManagedTypes managedTypes, org.springframework.beans.factory.support.RegisteredBean registeredBean) Hook to provide a customized flavor ofBeanRegistrationAotContribution. By overriding this method calls tocontributeType(ResolvableType, GenerationContext)might no longer be issued.- Parameters:
aotContext- never null.managedTypes- never null.- Returns:
- new instance of
BeanRegistrationAotContributionor null if nothing to do.
-
contributeType
protected void contributeType(org.springframework.core.ResolvableType type, org.springframework.aot.generate.GenerationContext generationContext) Hook to contribute configuration for a given type.- Parameters:
type- never null.generationContext- never null.
-
isMatch
-
matchesByType
-
matchesPrefix
-