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 Details

    • ManagedTypesBeanRegistrationAotProcessor

      public ManagedTypesBeanRegistrationAotProcessor()
  • Method Details

    • setModuleIdentifier

      public void setModuleIdentifier(@Nullable String moduleIdentifier)
    • getModuleIdentifier

      @Nullable public String getModuleIdentifier()
    • processAheadOfTime

      public org.springframework.beans.factory.aot.BeanRegistrationAotContribution processAheadOfTime(org.springframework.beans.factory.support.RegisteredBean registeredBean)
      Specified by:
      processAheadOfTime in interface org.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 of BeanRegistrationAotContribution. By overriding this method calls to contributeType(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

      protected boolean isMatch(@Nullable Class<?> beanType, @Nullable String beanName)
    • matchesByType

      protected boolean matchesByType(@Nullable Class<?> beanType)
    • matchesPrefix

      protected boolean matchesPrefix(@Nullable String beanName)