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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BeanRegistrationAotContribution
contribute
(AotContext aotContext, ManagedTypes managedTypes) 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)
-
Constructor Details
-
ManagedTypesBeanRegistrationAotProcessor
public ManagedTypesBeanRegistrationAotProcessor()
-
-
Method Details
-
processAheadOfTime
- Specified by:
processAheadOfTime
in interfaceBeanRegistrationAotProcessor
-
isMatch
-
matchesByType
-
matchesPrefix
-
contribute
@Nullable protected BeanRegistrationAotContribution contribute(AotContext aotContext, ManagedTypes managedTypes) 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
ManagedTypesBeanRegistrationAotProcessor
or null if nothing to do.
-
contributeType
Hook to contribute configuration for a given type.- Parameters:
type
- never null.generationContext
- never null.
-
setModuleIdentifier
-
getModuleIdentifier
-