public class ResourceScanner extends Object
用法:
new ResourceScanner("∕**∕").scan4text("*.properties")
new ResourceScanner("∕**∕").scan4text("*.class");
new ResourceScanner("∕").scan4text("*.xml");
new ResourceScanner("∕**∕").scan4text("*.xml")
new ResourceScanner("code.ponfee").scan4class();
new ResourceScanner("code.ponfee").scan4class(new Class[] { Service.class });
new ResourceScanner(ClassUtils.getPackagePath(XXX.class)).scan4text("abc.txt");
资源扫描org.springframework.context.annotation.ClassPathBeanDefinitionScanner| 构造器和说明 |
|---|
ResourceScanner(String... paths) |
| 限定符和类型 | 方法和说明 |
|---|---|
Map<String,byte[]> |
scan4binary()
Scan as byte array
|
Map<String,byte[]> |
scan4binary(String wildcard)
Scan as byte array
|
Set<Class<?>> |
scan4class()
类扫描
|
Set<Class<?>> |
scan4class(Class<? extends Annotation>... annotations)
类扫描
|
Map<String,String> |
scan4text()
文本扫描
|
Map<String,String> |
scan4text(String wildcard)
文本扫描
|
Map<String,String> |
scan4text(String wildcard,
Charset charset)
文本扫描
|
public ResourceScanner(String... paths)
paths - 扫描路径Copyright © 2023. All rights reserved.