public class

MapperScannerRegistrar

extends Object
implements ResourceLoaderAware ImportBeanDefinitionRegistrar
java.lang.Object
   ↳ org.mybatis.spring.annotation.MapperScannerRegistrar

Class Overview

A ImportBeanDefinitionRegistrar to allow annotation configuration of MyBatis mapper scanning. Using an @Enable annotation allows beans to be registered via @Component configuration, whereas implementing BeanDefinitionRegistryPostProcessor will work for XML configuration.

Summary

Public Constructors
MapperScannerRegistrar()
Public Methods
void registerBeanDefinitions(AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)
void setResourceLoader(ResourceLoader resourceLoader)
[Expand]
Inherited Methods
From class java.lang.Object
From interface org.springframework.context.ResourceLoaderAware
From interface org.springframework.context.annotation.ImportBeanDefinitionRegistrar

Public Constructors

public MapperScannerRegistrar ()

Public Methods

public void registerBeanDefinitions (AnnotationMetadata importingClassMetadata, BeanDefinitionRegistry registry)

public void setResourceLoader (ResourceLoader resourceLoader)