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
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
.protected void
contributeType
(org.springframework.core.ResolvableType type, org.springframework.aot.generate.GenerationContext generationContext) Hook to contribute configuration for a given type.protected boolean
protected boolean
matchesByType
(Class<?> beanType) protected boolean
matchesPrefix
(String beanName) org.springframework.beans.factory.aot.BeanRegistrationAotContribution
processAheadOfTime
(org.springframework.beans.factory.support.RegisteredBean registeredBean) void
setModuleIdentifier
(String moduleIdentifier) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:
processAheadOfTime
in 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
BeanRegistrationAotContribution
or 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
-