类 MiniDaoClassPathMapperScanner
java.lang.Object
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
org.springframework.context.annotation.ClassPathBeanDefinitionScanner
org.jeecgframework.minidao.factory.MiniDaoClassPathMapperScanner
- 所有已实现的接口:
org.springframework.beans.factory.Aware,org.springframework.context.ResourceLoaderAware,org.springframework.core.env.EnvironmentCapable
public class MiniDaoClassPathMapperScanner
extends org.springframework.context.annotation.ClassPathBeanDefinitionScanner
Dao扫描层
- 作者:
- JueYue
-
构造器概要
构造器构造器说明MiniDaoClassPathMapperScanner(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Class<? extends Annotation> annotation) -
方法概要
修饰符和类型方法说明Set<org.springframework.beans.factory.config.BeanDefinitionHolder>protected booleanisCandidateComponent(org.springframework.beans.factory.annotation.AnnotatedBeanDefinition beanDefinition) 默认不允许接口的,这里重写,覆盖下,另外默认会Scan @Component 这样所以的被@Component 注解的都会Scan从类继承的方法 org.springframework.context.annotation.ClassPathBeanDefinitionScanner
checkCandidate, getBeanDefinitionDefaults, getRegistry, isCompatible, postProcessBeanDefinition, registerBeanDefinition, scan, setAutowireCandidatePatterns, setBeanDefinitionDefaults, setBeanNameGenerator, setIncludeAnnotationConfig, setScopedProxyMode, setScopeMetadataResolver从类继承的方法 org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
addExcludeFilter, addIncludeFilter, clearCache, findCandidateComponents, getEnvironment, getMetadataReaderFactory, getResourceLoader, isCandidateComponent, registerDefaultFilters, resetFilters, resolveBasePackage, setEnvironment, setMetadataReaderFactory, setResourceLoader, setResourcePattern
-
构造器详细资料
-
MiniDaoClassPathMapperScanner
public MiniDaoClassPathMapperScanner(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Class<? extends Annotation> annotation)
-
-
方法详细资料
-
doScan
public Set<org.springframework.beans.factory.config.BeanDefinitionHolder> doScan(String... basePackages) - 覆盖:
doScan在类中org.springframework.context.annotation.ClassPathBeanDefinitionScanner
-
isCandidateComponent
protected boolean isCandidateComponent(org.springframework.beans.factory.annotation.AnnotatedBeanDefinition beanDefinition) 默认不允许接口的,这里重写,覆盖下,另外默认会Scan @Component 这样所以的被@Component 注解的都会Scan- 覆盖:
isCandidateComponent在类中org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
-