Class MybatisAutoConfiguration.AutoConfiguredMapperScannerRegistrar

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

    public static class MybatisAutoConfiguration.AutoConfiguredMapperScannerRegistrar
    extends java.lang.Object
    implements org.springframework.beans.factory.BeanFactoryAware, org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.ResourceLoaderAware
    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

      All Methods Instance Methods Concrete Methods 
      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)  
      void setResourceLoader​(org.springframework.core.io.ResourceLoader resourceLoader)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
      • setResourceLoader

        public void setResourceLoader​(org.springframework.core.io.ResourceLoader resourceLoader)
        Specified by:
        setResourceLoader in interface org.springframework.context.ResourceLoaderAware