public class ClassScaner extends Object implements org.springframework.context.ResourceLoaderAware
| 构造器和说明 |
|---|
ClassScaner() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addExcludeFilter(org.springframework.core.type.filter.TypeFilter excludeFilter) |
void |
addIncludeFilter(org.springframework.core.type.filter.TypeFilter includeFilter) |
Set<Class> |
doScan(String basePackage) |
org.springframework.core.io.ResourceLoader |
getResourceLoader() |
protected boolean |
matches(org.springframework.core.type.classreading.MetadataReader metadataReader) |
void |
resetFilters(boolean useDefaultFilters) |
static Set<Class> |
scan(String[] basePackages,
Class<? extends Annotation>... annotations) |
static Set<Class> |
scan(String basePackages,
Class<? extends Annotation>... annotations) |
void |
setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader) |
public static Set<Class> scan(String[] basePackages, Class<? extends Annotation>... annotations)
public static Set<Class> scan(String basePackages, Class<? extends Annotation>... annotations)
public final org.springframework.core.io.ResourceLoader getResourceLoader()
public void setResourceLoader(org.springframework.core.io.ResourceLoader resourceLoader)
setResourceLoader 在接口中 org.springframework.context.ResourceLoaderAwarepublic void addIncludeFilter(org.springframework.core.type.filter.TypeFilter includeFilter)
public void addExcludeFilter(org.springframework.core.type.filter.TypeFilter excludeFilter)
public void resetFilters(boolean useDefaultFilters)
protected boolean matches(org.springframework.core.type.classreading.MetadataReader metadataReader)
throws IOException
IOExceptionCopyright © 2021. All rights reserved.