Package org.springframework.data.aot
Class ManagedTypesBeanRegistrationAotProcessor
java.lang.Object
org.springframework.data.aot.ManagedTypesBeanRegistrationAotProcessor
- All Implemented Interfaces:
BeanRegistrationAotProcessor
public class ManagedTypesBeanRegistrationAotProcessor
extends Object
implements 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 BeanRegistrationAotContribution
contribute
(AotContext aotContext, ManagedTypes managedTypes, RegisteredBean registeredBean) Hook to provide a customized flavor ofBeanRegistrationAotContribution
.protected void
contributeType
(ResolvableType type, GenerationContext generationContext) Hook to contribute configuration for a given type.protected boolean
protected boolean
matchesByType
(Class<?> beanType) protected boolean
matchesPrefix
(String beanName) processAheadOfTime
(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
- Specified by:
processAheadOfTime
in interfaceBeanRegistrationAotProcessor
-
contribute
@Nullable protected BeanRegistrationAotContribution contribute(AotContext aotContext, ManagedTypes managedTypes, 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
Hook to contribute configuration for a given type.- Parameters:
type
- never null.generationContext
- never null.
-
isMatch
-
matchesByType
-
matchesPrefix
-