Class MybatisAutoConfiguration.AutoConfiguredMapperScannerRegistrar

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportBeanDefinitionRegistrar
    Enclosing class:
    MybatisAutoConfiguration

    public static class MybatisAutoConfiguration.AutoConfiguredMapperScannerRegistrar
    extends java.lang.Object
    implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportBeanDefinitionRegistrar
    This will just scan the same base package as Spring Boot does. If you want more power, you can explicitly use MapperScan but this will get typed mappers working correctly, out-of-the-box, similar to using Spring Data JPA repositories.
    • Method Summary

      Modifier and Type Method Description
      void registerBeanDefinitions​(org.springframework.core.type.AnnotationMetadata importingClassMetadata, org.springframework.beans.factory.support.BeanDefinitionRegistry registry)  
      void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar

        registerBeanDefinitions
    • Constructor Detail

      • AutoConfiguredMapperScannerRegistrar

        public AutoConfiguredMapperScannerRegistrar()
    • Method Detail

      • registerBeanDefinitions

        public void registerBeanDefinitions​(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
                                            org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
        Specified by:
        registerBeanDefinitions in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar
      • setBeanFactory

        public void setBeanFactory​(org.springframework.beans.factory.BeanFactory beanFactory)
        Specified by:
        setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAware