Class MiniDaoClassPathMapperScanner
java.lang.Object
org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
org.springframework.context.annotation.ClassPathBeanDefinitionScanner
org.jeecgframework.minidao.factory.MiniDaoClassPathMapperScanner
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ResourceLoaderAware,org.springframework.core.env.EnvironmentCapable
public class MiniDaoClassPathMapperScanner
extends org.springframework.context.annotation.ClassPathBeanDefinitionScanner
Dao扫描层
- Author:
- JueYue
-
Field Summary
Fields inherited from class org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
IGNORE_CLASSFORMAT_PROPERTY_NAME -
Constructor Summary
ConstructorsConstructorDescriptionMiniDaoClassPathMapperScanner(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Class<? extends Annotation> annotation) -
Method Summary
Modifier and TypeMethodDescriptionSet<org.springframework.beans.factory.config.BeanDefinitionHolder>protected booleanisCandidateComponent(org.springframework.beans.factory.annotation.AnnotatedBeanDefinition beanDefinition) 默认不允许接口的,这里重写,覆盖下,另外默认会Scan @Component 这样所以的被@Component 注解的都会ScanMethods inherited from class org.springframework.context.annotation.ClassPathBeanDefinitionScanner
checkCandidate, getBeanDefinitionDefaults, getRegistry, isCompatible, postProcessBeanDefinition, registerBeanDefinition, scan, setAutowireCandidatePatterns, setBeanDefinitionDefaults, setBeanNameGenerator, setIncludeAnnotationConfig, setScopedProxyMode, setScopeMetadataResolverMethods inherited from class org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
addExcludeFilter, addIncludeFilter, clearCache, findCandidateComponents, getEnvironment, getMetadataReaderFactory, getResourceLoader, isCandidateComponent, registerDefaultFilters, resetFilters, resolveBasePackage, setEnvironment, setMetadataReaderFactory, setResourceLoader, setResourcePattern
-
Constructor Details
-
MiniDaoClassPathMapperScanner
public MiniDaoClassPathMapperScanner(org.springframework.beans.factory.support.BeanDefinitionRegistry registry, Class<? extends Annotation> annotation)
-
-
Method Details
-
doScan
public Set<org.springframework.beans.factory.config.BeanDefinitionHolder> doScan(String... basePackages) - Overrides:
doScanin classorg.springframework.context.annotation.ClassPathBeanDefinitionScanner
-
isCandidateComponent
protected boolean isCandidateComponent(org.springframework.beans.factory.annotation.AnnotatedBeanDefinition beanDefinition) 默认不允许接口的,这里重写,覆盖下,另外默认会Scan @Component 这样所以的被@Component 注解的都会Scan- Overrides:
isCandidateComponentin classorg.springframework.context.annotation.ClassPathScanningCandidateComponentProvider
-