public class MapperScannerRegistrar extends Object implements org.springframework.context.annotation.ImportBeanDefinitionRegistrar, org.springframework.context.ResourceLoaderAware
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.MapperFactoryBean,
ClassPathMapperScanner| Constructor and Description |
|---|
MapperScannerRegistrar() |
| Modifier and Type | Method and Description |
|---|---|
void |
registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
Deprecated.
Since 2.0.2, this method not used never.
|
@Deprecated public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader in interface org.springframework.context.ResourceLoaderAwarepublic void registerBeanDefinitions(org.springframework.core.type.AnnotationMetadata importingClassMetadata,
org.springframework.beans.factory.support.BeanDefinitionRegistry registry)
registerBeanDefinitions in interface org.springframework.context.annotation.ImportBeanDefinitionRegistrarCopyright © 2010–2020 MyBatis.org. All rights reserved.